You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems loading this locally with file:///path/to/index.html broke sometime recently. Javascript(with XMLHttpRequest is not allowed to query ColorMaps.xml if it is a local file. It still works fine when sending requests to an http server.
The error I get is:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///path/to/ColorMaps.xml. (Reason: CORS request not http).
The text was updated successfully, but these errors were encountered:
Ethan, I also have this as an issue in cinemascience/cinema_explorer#16.
Hack fix: I can get around this by going to about:config in my browser and changing privacy.file_unique_origin to false in Firefox.
Or yes, do the http server -- from Jon Woodring
I’m instead running a simple http server instead out of the cinema explorer directory.
Python 2:
$ python -m SimpleHTTPServer
Python 3:
$ python -m http.server
It seems loading this locally with file:///path/to/index.html broke sometime recently. Javascript(with XMLHttpRequest is not allowed to query ColorMaps.xml if it is a local file. It still works fine when sending requests to an http server.
The error I get is:
The text was updated successfully, but these errors were encountered: