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

Try to supprot local debug without serve environment.Just make it support file: protocol! #3

Open
jacsonLee opened this issue Oct 28, 2014 · 3 comments

Comments

@jacsonLee
Copy link

No description provided.

@fritx
Copy link
Owner

fritx commented Oct 28, 2014

@jacsonLee thanks.

XMLHttpRequest cannot load file:///F:/dev/blog/p/sidebar.md. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource.
XMLHttpRequest cannot load file:///F:/dev/blog/p/diary.md. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource.

To get contents of markdown files, our blog app sends ajax requests, which are, for security purpose, disabled in Chrome under file:// protocol.

Usually, we have to setup a "server environment", as you mentioned, so we can visit the site under http:// protocol, etc.

@jacsonLee
Copy link
Author

Got it now! Thanks @fritx

@fritx
Copy link
Owner

fritx commented Oct 28, 2014

I am still wondering if we could use file:// to view the blog 🍻
But seems impossible, since it is really a security problem guarded by 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