mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: relax content-security-policy test using regex
This commit is contained in:
parent
957bc26583
commit
89d928ae44
@ -252,10 +252,7 @@ test('Content-Security-Policy Header', async t => {
|
||||
resolveWithFullResponse: true
|
||||
})
|
||||
// Verify functionality
|
||||
t.is(
|
||||
headers['content-security-policy'],
|
||||
"script-src 'self' 'sha256-BBvfKxDOoRM/gnFwke9u60HBZX3HUss/0lSI1sBRvOU='"
|
||||
)
|
||||
t.regex(headers['content-security-policy'], /script-src 'self' 'sha256-.*'/)
|
||||
})
|
||||
|
||||
test('/_nuxt/server-bundle.json should return 404', async t => {
|
||||
|
Loading…
Reference in New Issue
Block a user