Commit e51453fd3b20c01ed6b77b2c4396ec4254fbd403

Authored by Braulio Bhavamitra
1 parent abdf6fab

Allow Access-Control-Allow-Credentials in Access-Control-Allow-Origin

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/controllers/application_controller.rb
... ... @@ -13,6 +13,7 @@ class ApplicationController < ActionController::Base
13 13 unless environment.access_control_allow_methods.blank?
14 14 response.headers["Access-Control-Allow-Methods"] = environment.access_control_allow_methods
15 15 end
  16 + response.headers["Access-Control-Allow-Credentials"] = 'true'
16 17 elsif environment.restrict_to_access_control_origins
17 18 render_access_denied _('Origin not in allowed.')
18 19 end
... ...