next.js/test/e2e/app-dir/actions-allowed-origins/opaque-origin/next.config.js
next.config.js28 lines545 B
const allowOpaqueOrigin = process.env.NEXT_TEST_ALLOW_OPAQUE_ORIGIN === '1'

/** @type {import('next').NextConfig} */
module.exports = {
  productionBrowserSourceMaps: true,
  logging: {
    fetches: {},
  },
  headers() {
    return [
      {
        source: '/sandboxed',
        headers: [
          {
            key: 'Content-Security-Policy',
            value: 'sandbox allow-forms',
          },
        ],
      },
    ]
  },
  experimental: {
    serverActions: {
      allowedOrigins: allowOpaqueOrigin ? ['null'] : [],
    },
  },
}
Quest for Codev2.0.0
/
SIGN IN