()
| 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 | |
| 29 | module.exports = nextConfig; |
nothing calls this directly
no outgoing calls
no test coverage detected