Commit d2db31d6 authored by Sven Franck's avatar Sven Franck Committed by Eteri

erp5_officejs_afs_directory: add missing allow cross domain header

parent bd0770f0
......@@ -3,6 +3,9 @@ from Products.ERP5Type.Cache import CachingMethod
if url == None:
raise Exception("No url parameter provided.")
# XXX will only work for instances without authentication
context.REQUEST.response.setHeader("Access-Control-Allow-Origin", "*")
def retrieveOpenhubAnalysis(url):
return context.Software_getOpenHubLatestAnalysis(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment