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

This commit is contained in:
Kyle Zhao
2018-10-19 10:39:22 -04:00
committed by GitHub
parent 3d5085c045
commit fb8231077a
11 changed files with 327 additions and 3 deletions
+2
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