Skip to content

Instantly share code, notes, and snippets.

@dangalipo
Created March 28, 2013 03:42
Show Gist options
  • Save dangalipo/5260396 to your computer and use it in GitHub Desktop.
Save dangalipo/5260396 to your computer and use it in GitHub Desktop.
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS'
headers['Access-Control-Max-Age'] = "1728000"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment