mirror of
https://github.com/luxfhe/template-next.git
synced 2026-10-30 17:08:18 +00:00
25 lines
553 B
TypeScript
25 lines
553 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/",
|
|
headers: [
|
|
{
|
|
key: "Cross-Origin-Opener-Policy",
|
|
value: "same-origin", // Matched parameters can be used in the value
|
|
},
|
|
{
|
|
key: "Cross-Origin-Embedder-Policy", // Matched parameters can be used in the key
|
|
value: "require-corp",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|