FEATURE: [Experimental] Content Security Policy (#6514)

do not register new MIME type, parse raw body instead
This commit is contained in:
Kyle Zhao
2018-10-22 13:22:23 -04:00
committed by GitHub
parent ec2613699f
commit e9a971a2b6
10 changed files with 324 additions and 1 deletions

View File

@ -828,6 +828,8 @@ Discourse::Application.routes.draw do
post "/push_notifications/subscribe" => "push_notification#subscribe"
post "/push_notifications/unsubscribe" => "push_notification#unsubscribe"
resources :csp_reports, only: [:create]
get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new
end