20 lines
444 B
TypeScript
20 lines
444 B
TypeScript
|
|
import type { NextConfig } from "next";
|
||
|
|
|
||
|
|
const nextConfig: NextConfig = {
|
||
|
|
poweredByHeader: false,
|
||
|
|
async headers() {
|
||
|
|
return [
|
||
|
|
{
|
||
|
|
source: "/(.*)",
|
||
|
|
headers: [
|
||
|
|
{ key: "X-Content-Type-Options", value: "nosniff" },
|
||
|
|
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
|
||
|
|
{ key: "X-Frame-Options", value: "DENY" },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default nextConfig;
|