Skip to content

Conversation

@drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Dec 3, 2025

The option is extra_ssl_headers in the conf/webwork2.mojolicious.yml file. It works just like the extra_headers option, except that the headers are only added to responses to secure requests.

This is to address a need to add the Strict-Transport-Security header to SSL request responses that was brought up in the forums. See https://forums.openwebwork.org/mod/forum/discuss.php?d=8782#p22468. That header should not be added to non SSL requests.

@drgrice1 drgrice1 force-pushed the ssl-headers branch 2 times, most recently from 7ea3c26 to 6284ad7 Compare December 3, 2025 01:23
The option is `extra_ssl_headers` in the `conf/webwork2.mojolicious.yml`
file.  It works just like the `extra_headers` option, except that the
headers are only added to responses to secure requests.

This is to address a need to add the `Strict-Transport-Security` header
to SSL request responses that was brought up in the forums.  See
https://forums.openwebwork.org/mod/forum/discuss.php?d=8782#p22468. That
header should not be added to non SSL requests.
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.

1 participant