File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ module SecureHeaders
5050
5151 it "normalizes source expressions that end with a trailing /" do
5252 config = {
53- default_src : %w( a.example.org/ b.example.com/ c.example.net/foo/ b.example.co/bar )
53+ default_src : %w( a.example.org/ b.example.com/ wss:// c.example.com/ c.example. net/foo/ b.example.co/bar wss://b.example.co/ )
5454 }
5555 csp = ContentSecurityPolicy . new ( config )
56- expect ( csp . value ) . to eq ( "default-src a.example.org b.example.com c.example.net/foo/ b.example.co/bar" )
56+ expect ( csp . value ) . to eq ( "default-src a.example.org b.example.com wss:// c.example.com c.example. net/foo/ b.example.co/bar wss://b.example.co " )
5757 end
5858
5959 it "does not minify source expressions based on overlapping wildcards" do
You can’t perform that action at this time.
0 commit comments