()
| 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 | |
| 35 | export default nextConfig; |
nothing calls this directly
no outgoing calls
no test coverage detected