Comments (4)
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:
python -m http.server 8000
If you would rather use node, then:
npm install http-server -g
then in the directory run:
npx http-server -p 8000
If you'd rather use PHP, then run in the directory:
php -S 127.0.0.1:8000
After all of these you just need to go to http://localhost:8000
and it should work.
You can also look at these depending upon your editor:
Visual Studio Code
SublimeText
Atom Editor
Brackets (Built-In)
Point is, you don't need apache/nginx/litespeed/caddy/etc. to dev this but do need something to handle HTTP requests.
from homer.
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.
from homer.
Hi,
I just downloaded zip archive, uncompressed it in folder and opened browser (firefox 72 and chromium 79) via file protocolfile:///$PATHTO/homer/index.html
both browser fail to open page and return a CORS related error located at
app.js:48
app.js:58in 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 ?
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.
from homer.
Hi there,
Sorry for answering so late! As mentioned by @traeblain you need to have something to serve the files, assets & handle the CORS request. I'm afraid there is not really other workaround to that.
from homer.
Related Issues (20)
- Traefik component widget
- png Logo not showing
- [Question] How to change text for own translations?
- The upper and lower intervals are too wide
- Add pull-to-refresh in PWA mode
- Include package.json in release zip
- Add ability to route relative to the current URL / browser location API
- Netlify Deploy Preview not working for incoming PRs
- Optional message HOT 1
- How to add an IP address as URL?
- Update docker HOT 4
- custom services HOT 1
- Kubernetes Operator HOT 4
- 431 Request Header Fields Too Large
- Custom service for Glances integration
- Subject: Feature Request: Authentication Integration with Casdoor for Single Sign-On (SSO)
- New Service Config Tool
- docker image does not recognise timezone appropriately
- Incorrect example for background-image in example config.yml file
- Clarify docs for config.stylesheet. There's strange behavior when given a string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homer.