I get the error "XMLHttpRequest cannot load http://www.testserver.com/json_api.php. Method JSON is not allowed by Access-Control-Allow-Methods." when trying to debug my angularjs project doing a JSON request in webstorms.
The webserver(http://www.testserver.com) with the json_api.php is local and running apache with CORS e.g. headers "access-control-allow-origin *".
Debugging it with google chrome bulit in debugger it runs fine and the json object is recevied by my client from my server, but not in webstorms where I get the above error.
I am using the built-in webserver in webstorms for my page and when debugging my pages in webstorms it opens up http://localhost:63342/ in chrome.
Have followed the tutorial on http://blog.jetbrains.com/webstorm/2013/06/cors-control-in-jetbrains-chrome-extension/ with wildcard option "
" but still get the error.
Why am I getting ths error when running my app via webstorms, but not via google chrome debuger.
What can I do to solve this?