Michael Joyce created CLIMATE-350:
-------------------------------------

             Summary: 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