template icon indicating copy to clipboard operation
template copied to clipboard

Access to XMLHttpRequest blocked by CORS policy

Open admercs opened this issue 6 years ago • 1 comments

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.

admercs avatar Jul 09 '19 23:07 admercs

@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.

AminJun avatar Jul 30 '21 13:07 AminJun