CORS Control in JetBrains Chrome Extension

XMLHttpRequest cannot load Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.

Are you tired to fight it? Don’t want to wait until the system administrators configure the server properly? Don’t want to waste your time setting up a proxy server?

Forget about it.  JetBrains IDE Support (Google Chrome extension) allows you to avoid such errors in one simple step since version 0.9.2. Just open the extension options and add the URL of the resource to “Force CORS” list.

  1. Open chrome://extensions/
  2. Scroll down to JetBrains IDE Support section, click Options


  1. Right click on JetBrains IDE Support browser icon, select Options

You can add a pattern http://*/*, but it is not recommended for security reasons (performance impact is very minimal in any case).

The setting will be active all the time, not only when the JavaScript debugger or LiveEdit is connected to Chrome.

This entry was posted in Cool Feature. Bookmark the permalink.

11 Responses to CORS Control in JetBrains Chrome Extension

  1. Strajk says:

    It’s useful, but IMHO would be more appropriate to create another extension for this… It has nothing to do with JetBrains IDE Support

    > Write programs that do one thing and do it well.

  2. Will says:

    If you ever end up with this error, The ‘Access-Control-Allow-Origin’ header contains multiple values, disable to plug-in to see if you are accidentally shooting yourself in the foot.

  3. Daniel says:

    This is very helpful. I was looking for the past 2 hours how to add cross domain headers and this is a good temporary solution. Thanks

  4. Shantanu says:

    Thanks a lot!! saved my day !!

  5. Trisha Bonnette says:

    Why did this become an issue in the new Webstorm version. It seems I never had this problem before and nothing fixes it except maybe using a node or other server which would be crap.

    • Ekaterina Prigara says:

      Hello Trisha,
      can you please provide a bit more details on the issue you’re having?
      What WebStorm version do you use? Do you see this specific error about “Access-Control-Allow-Origin”?

  6. Trisha Bonnette says:

    Its useless and rather frustrating… tried all combinations

  7. Maximilian Berkmann says:

    Not helpful at all on Chrome and there’s no extensions like that for Opera.

    • lena_spb says:

      Please can you elaborate on this? what problems using CORs with Chrome have you faced? What Webstorm version do you use?

  8. koen cornelis says:

    Why not allow the webstorm user to set headers he/she needs?

    • Ekaterina Prigara says:

      The built-in server that we have in the IDE is very simple and it mostly targets only one use case – previewing the HTML pages and very simple apps with zero configuration. At the moment we don’t have any plans to make it more customizable.

Leave a Reply

Your email address will not be published. Required fields are marked *