-
Notifications
You must be signed in to change notification settings - Fork 40
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
Force https when running in production #141
Comments
I ended up implementing this in my kit by adding to my
and to my
|
just to note the code is still in the NHS kit from the GOV.UK kit, it's just commented out: https://github.com/nhsuk/nhsuk-prototype-kit/blob/master/lib/utils.js#L128-L141 |
Yes. I noticed but when I uncommented it it completely borked my app. I'm going to see if I can get the code working in the prototype utils file as per the gov.uk one and create a pull request. There were a few lines of code that have been cut out of the NHS kit that were in the gov.uk one |
@GrilloPress @joelanman I’ve got a new fix for this in #410. It’s setting the |
Most websites are now https and chrome gives you a warning if a website you are visiting isn't using http.
The prototype kit doesn't force this. So if you deploy to heroku you can have both a http and https version of the website. https is more secure.
In the app team we also noticed that when running the prototype kit as a PWA (to simulate the app) that if we used the http version a massive warning bar came up when a user used a field. This happened on every text input.
We should force (or allow the kit to force) https. More secure. Saves issues for people navigating and sharing the http version for testing and documentation.
The text was updated successfully, but these errors were encountered: