You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The options to crossOriginEmbedderPolicy are ignored when passed to helmet(config).
Passing the options through the middleware works fine.
See test bellow to reproduce.
crossOriginEmbedderPolicy does not take options. Remove the property to silence this warning.
Cross-Origin-Embedder-Policy through helmet()
1) should insert Cross-Origin-Embedder-Policy
Cross-Origin-Embedder-Policy standalone
✔ should insert Cross-Origin-Embedder-Policy
1 passing (22ms)
1 failing
1) Cross-Origin-Embedder-Policy through helmet()
should insert Cross-Origin-Embedder-Policy:
Error: expected "Cross-Origin-Embedder-Policy" matching /credentialless/, got "require-corp"
at Context.<anonymous> (test/crossOriginEmbedderPolicy_test.js:22:31)
at processImmediate (node:internal/timers:466:21)
----
at Test._assertHeader (node_modules/.pnpm/supertest@6.3.1/node_modules/supertest/lib/test.js:232:16)
at /Users/yacin/WORKSPACE/DEVELOPMENT/SUPERPOWER/salus/node_modules/.pnpm/supertest@6.3.1/node_modules/supertest/lib/test.js:308:13
at Test._assertFunction (node_modules/.pnpm/supertest@6.3.1/node_modules/supertest/lib/test.js:285:13)
at Test.assert (node_modules/.pnpm/supertest@6.3.1/node_modules/supertest/lib/test.js:164:23)
at Server.localAssert (node_modules/.pnpm/supertest@6.3.1/node_modules/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:641:28)
at Server.emit (node:events:527:28)
at emitCloseNT (node:net:1679:8)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
The text was updated successfully, but these errors were encountered:
The options to
crossOriginEmbedderPolicy
are ignored when passed tohelmet(config)
.Passing the options through the middleware works fine.
See test bellow to reproduce.
Test
Test results
The text was updated successfully, but these errors were encountered: