Skip to content

Commit

Permalink
Add netlify config file for headers (#615)
Browse files Browse the repository at this point in the history
* Add netlify config file for headers

* Use netlify config file, or at least attempt to
  • Loading branch information
dchw authored Aug 11, 2023
1 parent 2dd3eb8 commit e782393
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ publish:
RUN mkdir -p ./build/blog
RUN cp -rf ./blog/* ./build/blog
RUN cp -rf ./website/* ./build
COPY ./netlify.toml ./build/netlify.toml

IF [ "$DESTINATION" = "PROD" ]
RUN --no-cache echo "PROD_DEPLOY"
Expand Down
7 changes: 7 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
Strict-Transport-Security = "max-age=31536000; includeSubDomains"
Content-Security-Policy = "frame-ancestors 'self'"

0 comments on commit e782393

Please sign in to comment.