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

Alex Goodman commented on CLIMATE-350:
--------------------------------------

Hi Mike,

Seems the JIRA built-in code tag doesn't support syntax highlighting for python 
unfortunately. If you use the default tag (without specifying a language in the 
first tag), you will get Java syntax highlighting, though it is better than 
nothing I suppose.

> 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