Skip to content
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 being too strict and blocking localhost resources #59

Open
ipontt opened this issue Mar 27, 2023 · 5 comments
Open

CORS being too strict and blocking localhost resources #59

ipontt opened this issue Mar 27, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@ipontt
Copy link

ipontt commented Mar 27, 2023

I am experiencing the bug described in https://bugzilla.mozilla.org/show_bug.cgi?id=1376310 with the latest version of firedragon. It's fix also worked (using [::1] instead of localhost or 127.0.0.1).

According to this bug report, it's been fixed in firefox 75. Has the version of librewolf firedragon is based on implemented this fix?

@dr460nf1r3
Copy link
Owner

Hum, this should be available as we use Firefox as source. Maybe its another bug with common symptoms?

@ipontt
Copy link
Author

ipontt commented Mar 27, 2023

I'm asking because I tried following a free course that used this repo as a base but ran into the weird error. The steps I took were the following:

  1. git clone https://github.com/Code-Pop/from-vuex-to-pinia.git
  2. cd into the directory
  3. Go into the branch I wanted to work on git switch 03-Begin
  4. Install npm dependencies with npm i
  5. run command npm run dev as defined in its package.json file
  6. Try to open the site at localhost:8080 and the "db" at localhost:3000

This is the definition of the dev command

"vite & json-server --watch db.json"

vite serves the site on localhost:8080 and json-server makes the db.json file available as a mini json api on localhost:3000.

The thing is, localhost:3000 didn't work. The connection was just refused. I tried all sorts of voodoo fixes but the only one that worked (and provided some explanation for it) was the one I linked above.

http://localhost:3000 didn't work.
http://[::1]:3000 did.

I haven't really changed things in about:config and I updated just yesterday (currently on 111.0).

@dr460nf1r3
Copy link
Owner

Thanks for the instructions on how to reproduce it!

@dr460nf1r3 dr460nf1r3 added the bug Something isn't working label Mar 29, 2023
@dr460nf1r3
Copy link
Owner

Would you be so kind to test whether this also happens on Librewolf? It would help tracking down whether this is an actual FireDragon issue.

@ipontt
Copy link
Author

ipontt commented Apr 4, 2023

I have just tried it on librewolf. The issue was not present.
Screenshot_1
This is a comparison between two windows of firedragon, as well as firedragon's version.
Screenshot_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants