Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocked a frame with origin "null" from accessing a cross-origin frame #2

Open
AndyBraveMX opened this issue Mar 9, 2018 · 1 comment

Comments

@AndyBraveMX
Copy link

AndyBraveMX commented Mar 9, 2018

There is an issue trying to use the example.

Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
    at HTMLIFrameElement.iframe.onload (/javascript-development/reveal.js/node_modules/reveal.js-d3js/d3js.js:38:42)

I have read this post: https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame

and this:

https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome
In order to run the program.
However I think it could be a potential security bug.

What do you suggest to fix them without change the browser behavior?

@digitallamb
Copy link

That issue only occurs when you're trying to load the javascript from the file system, it wont happen when the site is hosted. In the short term in order to debug locally you can use python to fire up a simple webserver in the current directory: python -m SimpleHTTPServer and browse to localhost:8000

And for security's sake, you'll probably want to re-enable the same origin policy in Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants