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

Enable HSTS #154

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Enable HSTS #154

wants to merge 1 commit into from

Conversation

Joe-Heffer-Shef
Copy link
Collaborator

Changes:

@Joe-Heffer-Shef Joe-Heffer-Shef linked an issue Feb 24, 2025 that may be closed by this pull request
@Joe-Heffer-Shef Joe-Heffer-Shef self-assigned this Feb 24, 2025
@Joe-Heffer-Shef
Copy link
Collaborator Author

Tested HTTP to HTTPS redirect

$ curl --head http://sort-web-dev.shef.ac.uk
HTTP/1.1 301 Moved Permanently
Server: nginx/1.24.0 (Ubuntu)
Date: Mon, 24 Feb 2025 14:00:13 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://sort-web-dev.shef.ac.uk/

@Joe-Heffer-Shef
Copy link
Collaborator Author

Joe-Heffer-Shef commented Feb 24, 2025

The HSTS header is now present: (testing it on dev)

$ curl --head --insecure https://sort-web-dev.shef.ac.uk
HTTP/1.1 302 Found
Server: nginx/1.24.0 (Ubuntu)
Date: Mon, 24 Feb 2025 14:22:15 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /login/?next=/
X-Frame-Options: DENY
Vary: Cookie
Strict-Transport-Security: max-age=63072000

@Joe-Heffer-Shef Joe-Heffer-Shef marked this pull request as ready for review February 24, 2025 14:23
@Joe-Heffer-Shef Joe-Heffer-Shef changed the base branch from main to dev February 24, 2025 14:23
@Joe-Heffer-Shef Joe-Heffer-Shef mentioned this pull request Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable HSTS
1 participant