Some people might know about the LiveEdit feature in the Jetbrain's Webstorm IDE. It's an awesome feature for running code in your IDE and have it show up right away on the browser, without you refreshing the page.
However, it is supported only on Chrome (Chromium for me since I'm on Ubuntu).
I got the issue that whenever I run any ajax calls, I get this error:
Origin null is not allowed by Access-Control-Allow-Origin.
The solution:
I searched the Internet for solutions, and even though some say either one of these flags would work for local testing, I had to add both of them in order for it to work. Go figure!
chromium-browser --allow-access-from-files --disable-web-security
No comments:
Post a Comment