Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(nginx):embed iframe x-frame-options

Krypt0n123929697618f31
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
index 53c7d0a37..93de15a50 100644
--- a/frontend/nginx.conf
+++ b/frontend/nginx.conf
@@ -45,6 +45,17 @@ server {
add_header X-Content-Type-Options "nosniff" always;
}
+ # Internal fallback target for /embed/* routes. Keep it separate from the
+ # main SPA location so embed pages do not inherit X-Frame-Options.
+ location = /embed.html {
+ internal;
+ root /usr/share/nginx/html;
+ add_header Cache-Control "no-cache, must-revalidate" always;
+ add_header X-Content-Type-Options "nosniff" always;
+ add_header X-XSS-Protection "1; mode=block" always;
+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;
+ }
+
# Embed widget pages may be loaded inside third-party iframes (lightweight embed.html)
location ^~ /embed/ {
root /usr/share/nginx/html;
@@ -121,4 +132,4 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}
-}
\ No newline at end of file
+}