Commit 2674afaa authored by Sven Franck's avatar Sven Franck

erp5_officejs_afs_directory: add missing allow cross domain header

parent cac8e822
......@@ -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