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

Access to XMLHttpRequest blocked by CORS policy #108

Open
admercs opened this issue Jul 9, 2019 · 1 comment
Open

Access to XMLHttpRequest blocked by CORS policy #108

admercs opened this issue Jul 9, 2019 · 1 comment

Comments

@admercs
Copy link

admercs commented Jul 9, 2019

Using the v2 template, I receive the following error when trying to load the bibliography.bib file:

d-bibliography.js:99 Access to XMLHttpRequest at 'file:///Users/bob/development/website-bootstrap/articles/bibliography.bib' from origin 'bob' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

@AminJun
Copy link

AminJun commented Jul 30, 2021

@adam-erickson Hey did you figure this out?

Update:
I think I figure this out. Probably you're opening the index.html on your own machine. But if you had a server the serve all the files, this problem would go away. When I want to run on my own computer, npm run dev works as a local server for me.

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