Commit 3f5e397622f607b3c02e41559ac221dc656ce682
Exists in
master
and in
22 other branches
Merge branch 'ai3029' into 'master'
Allow Access-Control-Allow-Credentials in Access-Control-Allow-Origin http://noosfero.org/Development/ActionItem3029 See merge request !129
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/application_controller.rb
... | ... | @@ -28,6 +28,7 @@ class ApplicationController < ActionController::Base |
28 | 28 | unless environment.access_control_allow_methods.blank? |
29 | 29 | response.headers["Access-Control-Allow-Methods"] = environment.access_control_allow_methods |
30 | 30 | end |
31 | + response.headers["Access-Control-Allow-Credentials"] = 'true' | |
31 | 32 | elsif environment.restrict_to_access_control_origins |
32 | 33 | render_access_denied _('Origin not in allowed.') |
33 | 34 | end | ... | ... |