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

set HSTS header #6

Closed
its-danny opened this issue Aug 19, 2024 · 0 comments · Fixed by #9
Closed

set HSTS header #6

its-danny opened this issue Aug 19, 2024 · 0 comments · Fixed by #9
Labels
feat New feature or request

Comments

@its-danny
Copy link
Owner

If hsts is enabled, it sets the Strict-Transport-Security header to max-age=31536000; includeSubDomains. If preload is also enabled, preload gets appended.

New methods on Surf

  • hsts(bool)
    • Default: true
  • preload(bool)
    • Default: false

Refs

@its-danny its-danny added the feat New feature or request label Aug 19, 2024
its-danny added a commit that referenced this issue Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant