Skip to content

Commit 801754e

Browse files
fix: add some security headers to nginx (#236)
1 parent dfe6fe2 commit 801754e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

charts/langsmith/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ maintainers:
55
66
description: Helm chart to deploy the langsmith application and all services it depends on.
77
type: application
8-
version: 0.9.18
8+
version: 0.9.19
99
appVersion: "0.9.52"

charts/langsmith/templates/frontend/config-map.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ data:
2929
proxy_connect_timeout {{ .Values.frontend.proxyConnectTimeout }};
3030
proxy_send_timeout {{ .Values.frontend.proxyWriteTimeout }};
3131
32+
add_header Content-Security-Policy "frame-ancestors 'self'; object-src 'none'" always;
33+
add_header X-Frame-Options "SAMEORIGIN" always;
34+
add_header X-Content-Type-Options "nosniff" always;
35+
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
3236
3337
error_page 500 502 503 504 /50x.html;
3438
location = /50x.html {
@@ -212,6 +216,11 @@ data:
212216
proxy_connect_timeout {{ .Values.frontend.proxyConnectTimeout }};
213217
proxy_send_timeout {{ .Values.frontend.proxyWriteTimeout }};
214218
219+
add_header Content-Security-Policy "frame-ancestors 'self'; object-src 'none'" always;
220+
add_header X-Frame-Options "SAMEORIGIN" always;
221+
add_header X-Content-Type-Options "nosniff" always;
222+
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
223+
215224
location / {
216225
root /tmp/build;
217226
index index.html index.htm;

0 commit comments

Comments
 (0)