MCPcopy Create free account
hub / github.com/Swizec/article-threader / headers

Function headers

next.config.js:7–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 reactStrictMode: true,
6
7 async headers() {
8 return [
9 {
10 // matching all API routes
11 source: "/api/:path*",
12 headers: [
13 { key: "Access-Control-Allow-Credentials", value: "true" },
14 { key: "Access-Control-Allow-Origin", value: "*" },
15 {
16 key: "Access-Control-Allow-Methods",
17 value: "OPTIONS,POST",
18 },
19 {
20 key: "Access-Control-Allow-Headers",
21 value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
22 },
23 ],
24 },
25 ];
26 },
27});
28
29module.exports = nextConfig;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected