rsnext/test/e2e/nonce-head-manager/app/next.config.js
ericbiewener c791da0977
correctly assess node equality when nonce attribute is present (#27573)
* add isEqualNode function

* add test

* trying to make integration test work

* revert

* Update test/unit/is-equal-node.unit.test.js

Co-authored-by: Steven <steven@ceriously.com>

* Revert "revert"

This reverts commit d67b9971068d18efcf839666a3a17619fd914fc3.

* Fix tests

* Use TS for unit test

* Revert waitfor

* Start tests with "should"

* Fix lint

* Use cloneNode()

Co-authored-by: Eric Biewener <eric.biewener0@walmart.com>
Co-authored-by: Steven <steven@ceriously.com>
2021-11-10 19:31:32 -06:00

15 lines
272 B
JavaScript

module.exports = {
async headers() {
return [
{
source: '/csp',
headers: [
{
key: 'Content-Security-Policy',
value: "script-src-elem 'nonce-abc123' 'unsafe-eval'",
},
],
},
]
},
}