V
V
Verstad2021-03-09 17:54:13
webpack
Verstad, 2021-03-09 17:54:13

CORS error how to fix?

In development mode, the project runs ok. As I assemble the project, the whole layout goes to hell in the console with an error.

Access to CSS stylesheet at "File Path" from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
index.html

Error occurs with css and js file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-03-10
@Verstad

css must be on the same domain as css, it looks like something messed up with the assembly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question