[Backlogmanager] [FIWARE-JIRA] (HELP-13450) [fiware-stackoverflow] Fiware error: Access-Control-Allow-Origin

Jose Manuel Cantera (JIRA) jira-help-desk at jira.fiware.org
Wed Jan 31 15:47:00 CET 2018


     [ https://jira.fiware.org/browse/HELP-13450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Manuel Cantera reassigned HELP-13450:
------------------------------------------

    Assignee: Karaboga, Burak  (was: Jose Manuel Cantera)

> [fiware-stackoverflow] Fiware error: Access-Control-Allow-Origin
> ----------------------------------------------------------------
>
>                 Key: HELP-13450
>                 URL: https://jira.fiware.org/browse/HELP-13450
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Karaboga, Burak
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 30-01-2018 at 14:01
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/48523162/fiware-error-access-control-allow-origin
> +Question:+
> Fiware error: Access-Control-Allow-Origin
> +Description:+
> I'm making a call to the contextBroker and it gives me this error.
> Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 405.
> From postman or from freeboard I do not get any of this.
>   getContextBroker(){
>     console.log("Consumimos el servicio getContextBroker");
>     let headers = new Headers ({'Accept': 'application/json', 'Fiware-Service': 'x', 'Fiware-ServicePath': '/x', 'Access-Control-Allow-Origin': '*'});
>     let options = new RequestOptions ({headers : headers});
>     return this._http.get(this.urlcontextBrokers, {headers : headers}).map(res => res.json());
>   }
> }
> how can I solve that?
> I've tried adding: 'Access-Control-Allow-Origin': '*'
> But it still does not work



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy