MCPcopy Create free account
hub / github.com/Qinbf/groundmap / headers

Function headers

web/next.config.mjs:17–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 // - CSP 不设:CodeMirror / react-markdown 内联样式与 dynamic import 难精确白名单;
16 // 宁缺毋滥(CSP 配错比不配更危险)。需要时建议在反代层加。
17 async headers() {
18 return [
19 {
20 source: "/:path*",
21 headers: [
22 { key: "X-Content-Type-Options", value: "nosniff" },
23 { key: "X-Frame-Options", value: "DENY" },
24 { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
25 {
26 key: "Permissions-Policy",
27 value: "camera=(), microphone=(), geolocation=(), interest-cohort=()",
28 },
29 ],
30 },
31 ];
32 },
33};
34
35export default nextConfig;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected