2ef993492fb3d2246f3d9e8cce15649fb0d2e418
Gitcub / next.config.js
// Copyright © 2023 Dean Lee

const securityHeaders = [
  {
    key: 'Content-Security-Policy',
    value: 'frame-ancestors \'none\'',
  }
]

module.exports = {
  async headers() {
    return [
      {
        source: '/:path*',
        headers: securityHeaders,
      },
    ]
  },
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19