noosfero | 2 new commits pushed to repository
Bráulio Bhavamitra
gitlab at gitlab.com
Mon Feb 23 10:18:48 BRT 2015
Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/e51453fd3b20c01ed6b77b2c4396ec4254fbd403">e51453fd</a> by Braulio Bhavamitra
Allow Access-Control-Allow-Credentials in Access-Control-Allow-Origin
- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/3f5e397622f607b3c02e41559ac221dc656ce682">3f5e3976</a> by Bráulio Bhavamitra
Merge branch 'ai3029' into 'master'
Allow Access-Control-Allow-Credentials in Access-Control-Allow-Origin
http://noosfero.org/Development/ActionItem3029
See merge request !129
- - - - -
Changes:
=====================================
app/controllers/application_controller.rb
=====================================
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -28,6 +28,7 @@ class ApplicationController < ActionController::Base
unless environment.access_control_allow_methods.blank?
response.headers["Access-Control-Allow-Methods"] = environment.access_control_allow_methods
end
+ response.headers["Access-Control-Allow-Credentials"] = 'true'
elsif environment.restrict_to_access_control_origins
render_access_denied _('Origin not in allowed.')
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150223/5bdf8353/attachment-0001.html>
More information about the Noosfero-dev
mailing list