-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to allow access to network requests (IPs) in local dev #397
Comments
Hi @nosizejosh
|
@vejja
|
Can you try :
|
tried, it didn't work. same error |
@nosizejosh I'm not able to reproduce I can see the first 2 warnings (the one about COEP and the one about Origin-Agent-Cluster) but I can't reproduce the net::ERR_SSL_PROTOCOL_ERROR, which initially lead me to think that you were trying to connect via https somehow. Do you know why you seem to be trying to load over https ? This can happen when you have Upgrade-Insecure-Requests with STS: the browser will automatically try to connect via https even if you require http. Otherwise can you please share a repro ? I'll look at it |
I have tried all you suggested and none worked It only works if I disable the module or use localhost which is not a big deal, except this prevents me from testing from other devices especially on mobile. Any more thoughts on what could be the issue? |
Yes, sorry I got confused between STS and Upgrade-Insecure-Requests (this is what forces https) :
|
Hey @nosizejosh You can ditch The two remaining errors should disappear in production when you deploy over https. |
Thanks @vejja for the great explanation! I was quite busy today and couldnt join the discussion so I am glad that you managed to help. You are a rockstar! |
Thanks @Baroshem |
Added in df0d711 |
I am running nuxt with the --host flag to expose network so that other devices on the same network can test the app.
nuxt-securtiy block (http://192.168.100.92:3000/login) by default but allows access to http://localhost:3000/login even on the host device.
I thought adding
would allow access to local network but it doesn't.
Only way to get access is to disable the module.
How can I allow access to network request on local dev with IPs and not only localhost?
The text was updated successfully, but these errors were encountered: