1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 23:24:00 +02:00

[#677] unset the X-Frame-Options when serving static files to allow files embedding

This commit is contained in:
Gani Georgiev
2022-10-02 13:28:33 +03:00
parent b0db2399b8
commit a6cafd1ed7
13 changed files with 217 additions and 208 deletions

View File

@@ -240,6 +240,10 @@ func TestFileSystemServe(t *testing.T) {
t.Errorf("(%s) Expected value %q for header %q, got %q", scenario.path, hValue, hName, v)
}
}
if v := result.Header.Get("X-Frame-Options"); v != "" {
t.Errorf("(%s) Expected the X-Frame-Options header to be unset, got %v", scenario.path, v)
}
}
}