-
Notifications
You must be signed in to change notification settings - Fork 53
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
Not working on DEV on network devices #447
Comments
Hi @moshetanzer This could be related to the default security setup for ‘upgrade-insecure-requests’ when serving with —host without a secure SSL connection Can you try our recommended setup for —host at https://nuxt-security.vercel.app/documentation/advanced/faq#running-app-with-host-flag |
Hi, Yes thanks this worked better than just using the --https flag. Thank you. Shouldnt cors handler * be set only for dev to all? |
Also when using strictTransportSecurity true - nuxt.config.ts type is wrong since it expects false |
With all the settings we usually prefer to have it the same for all environments to avoid situations where something will pass on dev environment and will fail on prod environment. This is shipped by us as a good practise but you can always customize it to work only on certain environment the way you want :) Also, thanks for the kind words! We are happy that you like the module :) |
I think you are correct. Could you please create a new issue with it? I think it is related to the documentation only as we changed it some time ago from accepting boolean values to only accept Object / false. And if you would be interested in contributing, we would be very happy to help you with your first PR :) |
Hi,
Thanks for this great library. I have come across an issue where when I add --host to give dev server network address - the website displays without any styling on all devices connected to network address.
What is the best way to solve this just for dev.
Thanks
The text was updated successfully, but these errors were encountered: