]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Extend form-action policies for Chrome
[rails.git] / app / controllers / user_controller.rb
index b3a1ddda8fbf231ea987cc8a6bd27ef38fc00049..5c41a79dc84da7f336d7ed0152094571c0e0fe8a 100644 (file)
@@ -203,6 +203,10 @@ class UserController < ApplicationController
     @title = t "user.new.title"
     @referer = params[:referer] || session[:referer]
 
+    append_content_security_policy_directives(
+      :form_action => %w[accounts.google.com *.facebook.com login.live.com github.com meta.wikimedia.org]
+    )
+
     if current_user
       # The user is logged in already, so don't show them the signup
       # page, instead send them to the home page