Git Product home page Git Product logo

Comments (4)

traeblain avatar traeblain commented on May 18, 2024 1

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.

m1cypher avatar m1cypher commented on May 18, 2024

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.

m1cypher avatar m1cypher commented on May 18, 2024

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 ?

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.

bastienwirtz avatar bastienwirtz commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.