Skip to content

Instantly share code, notes, and snippets.

@kevin-shu
Created January 17, 2014 03:54
Show Gist options
  • Save kevin-shu/8468160 to your computer and use it in GitHub Desktop.
Save kevin-shu/8468160 to your computer and use it in GitHub Desktop.
def set_access_control_headers
response.headers['Access-Control-Allow-Origin'] = 'http://traderail.com'
response.headers['Access-Control-Request-Method'] = '*'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment