Skip to content
Snippets Groups Projects
Commit ee6f55a5 authored by ptangu01's avatar ptangu01
Browse files

add max age in order to avoid options request every times

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1055 b32b6428-25c9-4566-ad07-03861ab6144f
parent 50b86035
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ class Sender(object):
def OPTIONS(self):
cherrypy.response.headers['Access-Control-Allow-Origin'] = '*'
cherrypy.response.headers['Access-Control-Allow-Methods'] = 'POST'
cherrypy.response.headers['Access-Control-Max-Age'] = '60' #60 seconds
cherrypy.response.headers['Access-Control-Allow-Headers'] = 'Content-Type'
@cherrypy.tools.json_in()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment