Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Cors Operations
- cors_controller = CorsController()
- mapper.connect('/tokens',
- controller=cors_controller,
- action='get_options',
- conditions=dict(method=['OPTIONS']))
- echo -e 'OPTIONS /v2.0/tokens HTTP/1.1\r\n' | nc 10.76.0.119 5000
- HTTP/1.1 200 OK
- Access-Control-Allow-Headers: origin,content-type,accept,x-auth-token
- Access-Control-Allow-Methods: POST
- Access-Control-Allow-Origin: https://10.76.0.119:8433
- Access-Control-Max-Age: 60
- Date: Thu, 21 Jun 2012 16:52:33 GMT
- Transfer-Encoding: chunked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement