diff options
author | Stephen Solis <stephsolis@gmail.com> | 2018-04-12 12:12:09 -0400 |
---|---|---|
committer | Stephen <stephen@nowhere> | 2018-04-12 12:44:11 -0400 |
commit | 01d857b09ae22174d5101a03b424829a876cc4bd (patch) | |
tree | 7061730665a01cbd67de9039cd180ceab23b1004 /actionpack/lib | |
parent | 5b7de1b70156ed0861e494ab9900c6b87c206a67 (diff) | |
download | rails-01d857b09ae22174d5101a03b424829a876cc4bd.tar.gz rails-01d857b09ae22174d5101a03b424829a876cc4bd.tar.bz2 rails-01d857b09ae22174d5101a03b424829a876cc4bd.zip |
Add WebSocket URI support to CSP DSL mappings
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/content_security_policy.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/content_security_policy.rb b/actionpack/lib/action_dispatch/http/content_security_policy.rb index a3407c9698..c1f80a1ffc 100644 --- a/actionpack/lib/action_dispatch/http/content_security_policy.rb +++ b/actionpack/lib/action_dispatch/http/content_security_policy.rb @@ -113,7 +113,9 @@ module ActionDispatch #:nodoc: blob: "blob:", filesystem: "filesystem:", report_sample: "'report-sample'", - strict_dynamic: "'strict-dynamic'" + strict_dynamic: "'strict-dynamic'", + ws: "ws:", + wss: "wss:" }.freeze DIRECTIVES = { |