-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
CORS request require http or https protocol (app.js) #14
Comments
I am having the same issue. I am wondering if you need to put this on a server to have the apache/nginx engine to get it to work. I will attempt that this weekend. |
Hey so running the homer on a apache2 server worked perfectly. I think that is what it meant. You'll have to create a virtual host to get it to work, but that is how I got it to work. If you need some help with that I can help. Shoot me a message. If you are trying to get it to work locally, I'd wait on him to respond. |
Line 48 makes an HTTP HEAD request and line 58 is looking for an HTTP Status Code (i.e. 200). When opening from a file:// the requests are FILE request not HTTP requests. This is easily fixed by utilizing a simple HTTP server. If you have python installed run in the directory: If you would rather use node, then: If you'd rather use PHP, then run in the directory: After all of these you just need to go to You can also look at these depending upon your editor: Point is, you don't need apache/nginx/litespeed/caddy/etc. to dev this but do need something to handle HTTP requests. |
Hi there, |
Hi,
I just downloaded zip archive, uncompressed it in folder and opened browser (firefox 72 and chromium 79) via file protocol
file:///$PATHTO/homer/index.html
both browser fail to open page and return a CORS related error located at
app.js:48
app.js:58
in firefox (68+) resing reason error is described at https://developer.mozilla.org/it/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp
some idea how to fix issue without having to edit browser settings ?
The text was updated successfully, but these errors were encountered: