Replies: 1 comment
-
Seems like there is a hard requirement from chromium that CORS cannot be bypassed on the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am attempting to run a small html 5 game within the embedded browser in unity using all local files, but the CORS policy is not allowing it. Is there a way that I can change settings to allow the html file to access the local dependency files? I would rather not use a local server as the project i am working on needs to be plug and play for the end user.
Here is an example of the error message i get:
[UWB]: [CEF Engine Browser Console]: [file:///C:/Users/User/Documents/Output/TestProject/www/index.html:0]: Access to XMLHttpRequest at 'file:///C:/Users/User/Documents/Output/TestProject/www/data/Troops.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
Beta Was this translation helpful? Give feedback.
All reactions