15 lines
767 B
JavaScript
15 lines
767 B
JavaScript
|
|
/** @type {import('next').NextConfig} */
|
||
|
|
export default {
|
||
|
|
poweredByHeader: false,
|
||
|
|
async redirects() { return [{ source: '/admin/connectors', destination: '/einstellungen/verbindungen', permanent: true }]; },
|
||
|
|
async rewrites() { return [{ source: '/api/:path*', destination: `${process.env.KC_API_URL ?? 'http://127.0.0.1:4100'}/v1/:path*` }]; },
|
||
|
|
async headers() {
|
||
|
|
return [{ source: '/:path*', headers: [
|
||
|
|
{ key: 'Content-Security-Policy', value: "frame-ancestors 'none'; base-uri 'self'; form-action 'self'; object-src 'none'" },
|
||
|
|
{ key: 'X-Content-Type-Options', value: 'nosniff' },
|
||
|
|
{ key: 'Referrer-Policy', value: 'same-origin' },
|
||
|
|
{ key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()' },
|
||
|
|
] }];
|
||
|
|
},
|
||
|
|
};
|