-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Add section for HTTP headers, #110
- Loading branch information
1 parent
ea22f71
commit adad8e1
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
HTTP | ||
==== | ||
|
||
In order of preference, set these headers in: | ||
|
||
- project code | ||
- ``default.conf`` file, if the project includes a `Docker image running nginx <https://ocp-software-handbook.readthedocs.io/en/latest/docker/dockerfile.html#base-images>`__ | ||
- `deploy <https://github.com/open-contracting/deploy>`__ repository, if the project runs third-party code, like WordPress | ||
|
||
X-Content-Type-Options | ||
---------------------- | ||
|
||
If not already set (like via `SECURE_CONTENT_TYPE_NOSNIFF <https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-SECURE_CONTENT_TYPE_NOSNIFF>`__ in Django), set the header to: | ||
|
||
.. code-block:: none | ||
nosniff | ||
Strict-Transport-Security (HSTS) | ||
-------------------------------- | ||
|
||
If not already set (like via :ref:`SECURE_HSTS_SECONDS<django-env>` in Django), set the header to: | ||
|
||
.. code-block:: none | ||
max-age=31536000; includeSubdomains; preload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters