projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d675a
)
[MERGE] backport trunk revision 5053 fva@openerp.com-20140206110134-jk5zbd8cc6x1ebh5
author
Christophe Simonis
<chs@openerp.com>
Thu, 6 Feb 2014 13:11:16 +0000
(14:11 +0100)
committer
Christophe Simonis
<chs@openerp.com>
Thu, 6 Feb 2014 13:11:16 +0000
(14:11 +0100)
bzr revid: chs@openerp.com-
20140206131116
-we6rlic5fu09xh8q
openerp/http.py
patch
|
blob
|
history
diff --git
a/openerp/http.py
b/openerp/http.py
index
cf5241b
..
c8c1bed
100644
(file)
--- a/
openerp/http.py
+++ b/
openerp/http.py
@@
-441,6
+441,7
@@
class HttpRequest(WebRequest):
elif request.func.routing.get('methods'):
methods = ', '.join(request.func.routing['methods'])
response.headers.set('Access-Control-Allow-Methods', methods)
+ response.headers.set('Access-Control-Max-Age',60*60*24)
response.headers.set('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
return response