mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
CSP: drop 'self' in script-src
(#6611)
This commit is contained in:
@ -259,7 +259,6 @@ RSpec.describe ApplicationController do
|
||||
script_src = parse(response.headers['Content-Security-Policy'])['script-src']
|
||||
|
||||
expect(script_src).to include('example.com')
|
||||
expect(script_src).to include("'self'")
|
||||
expect(script_src).to include("'unsafe-eval'")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user