Created
May 13, 2015 13:54
-
-
Save 2624789/e7855783eb9c9230a26f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_filter :establecer_cabeceras_cors | |
def establecer_cabeceras_cors | |
headers['Access-Control-Allow-Origin'] = 'http://127.0.0.1:8100' | |
headers['Access-Control-Allow-Methods'] = 'GET,POST,PUT,DELETE' | |
headers['Access-Control-Allow-Headers'] = '*' | |
headers['Access-Control-Max-Age'] = '3628800' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment