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

proxy.html masters with file:// protocol #209

Open
sportmann opened this issue Feb 6, 2018 · 1 comment
Open

proxy.html masters with file:// protocol #209

sportmann opened this issue Feb 6, 2018 · 1 comment

Comments

@sportmann
Copy link

We try to register masters within the proxy.html to allow to communicate within a local opened html file (file:///C:/temp/ZKF_2033054588-3.html) corresponding with our https server. But the request gets blocked. It only works if we add the master: '':''

Is it possible to register 'file:///' masters?

`

<script src="xdomain.min.js"></script> <script> xdomain.masters({ 'https://*.jaxforms.com': '*', 'http://localhost':'*', 'file:///':'*' }); xdomain.debug = true; </script>`
@sportmann
Copy link
Author

Looks like if file is loading from local harddisk (file:///...) the origin is "null" and will be put to a "*". See screenshot. How han i recognize the html is loaded from a file?
2018-02-09_0852

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

1 participant