[ 
https://issues.apache.org/jira/browse/CLIMATE-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913981#comment-13913981
 ] 

Michael Joyce commented on CLIMATE-350:
---------------------------------------

Evidently we can't use the JIRA code formatting tags either? Or I'm being dumb?

https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa

> Access-Control-Allow-Origin is not set on response from UI backend
> ------------------------------------------------------------------
>
>                 Key: CLIMATE-350
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-350
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: webapp
>    Affects Versions: 0.3-incubating
>            Reporter: Michael Joyce
>            Assignee: Michael Joyce
>             Fix For: 0.4-incubating
>
>
> The header should be set with the following hook, but it evidently isn't.
> {code:python}
> @app.hook('after_request')
> def enable_cors():
>     ''' Allow Cross-Origin Resource Sharing for all URLs. '''
>     response.headers['Access-Control-Allow-Origin'] = '*'
> {code}
> Figure out why this is the case!



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to