Skip to content

Add Strict-Transport-Security (HSTS) Header to Enforce HTTPS #13

@mdwRepository

Description

@mdwRepository

Issue Summary

Our Flask application currently does not set the Strict-Transport-Security (HSTS) header, which results in a security warning. The absence of this header means that browsers do not have instructions to enforce HTTPS-only communication with our server, potentially exposing users to protocol downgrade attacks and cookie hijacking.

HTTP/1.1 200 OK
Server: gunicorn
Date: Tue, 12 Nov 2024 14:17:10 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 9357
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-Content-Type-Options: nosniff

Objective

Implement the Strict-Transport-Security header in our Flask application to enforce HTTPS-only communication and address the security warning.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsecurityIndicates that the issue or pull request relates to the security of the application.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions