Skip to content

Instantly share code, notes, and snippets.

@saqib-nadeem
Created June 9, 2015 06:27
Show Gist options
  • Save saqib-nadeem/ac862e8260203dae4fa7 to your computer and use it in GitHub Desktop.
Save saqib-nadeem/ac862e8260203dae4fa7 to your computer and use it in GitHub Desktop.
Add these access control and X-Frame Allow config settings to inyourcorner_stage > config > application.rb file after line 19
config.action_dispatch.default_headers.merge!({
'Access-Control-Allow-Origin' => '*',
'Access-Control-Request-Method' => '*',
'X-Frame-Options'=>'ALLOWALL'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment