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

HTTP Response headers #2683

Open
tooptoop4 opened this issue Dec 15, 2021 · 3 comments
Open

HTTP Response headers #2683

tooptoop4 opened this issue Dec 15, 2021 · 3 comments
Labels
question runtime Relates to github.com/go-openapi/runtime

Comments

@tooptoop4
Copy link

How to add HSTS/XSS headers? ie Strict-Transport-Security: max-age=34426728;includeSubDomains or X-XSS-Protection

@casualjim
Copy link
Member

you can use a middleware for that

@tooptoop4
Copy link
Author

@casualjim can u share something I can paste in? :)

@fredbi fredbi added question runtime Relates to github.com/go-openapi/runtime labels Dec 22, 2023
@fredbi
Copy link
Contributor

fredbi commented Dec 22, 2023

Documented here: https://goswagger.io/use/middleware.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question runtime Relates to github.com/go-openapi/runtime
Projects
None yet
Development

No branches or pull requests

3 participants