LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-3124 [FIX] : Add security headers and HTTP method restrictions to nginx (#1726)
Jaseem Jas3469b02253f8
diff --git a/frontend/nginx.conf b/frontend/nginx.confindex 8cb1b66d5..f3eef1953 100644--- a/frontend/nginx.conf+++ b/frontend/nginx.conf@@ -42,12 +42,27 @@ http {root /usr/share/nginx/html;include /etc/nginx/mime.types;+ # Security headers+ add_header X-Content-Type-Options "nosniff" always;+ add_header X-Frame-Options "SAMEORIGIN" always;+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;++ # Disable TRACE and TRACK methods+ if ($request_method ~ ^(TRACE|TRACK)$) {+ return 405;+ }+# If a react app URI is directly accessed we will get 404# since there will be no file representing that path.# Below config will load index.html file in such case and# browser will load the proper path using JS.location / {+ # Limit allowed HTTP methods+ limit_except GET HEAD {+ deny all;+ }try_files $uri /index.html;}+}}