Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 30-01-2018 at 14:01
Please, ANSWER this question AT 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 (
);
let options = new RequestOptions (
);
return this._http.get(this.urlcontextBrokers,
).map(res => res.json());
}
}
how can I solve that?
I've tried adding: 'Access-Control-Allow-Origin': '*'
But it still does not work
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1d 2h 58m | 1 | Backlog Manager | 31/Jan/18 6:05 PM | |||||
|
3h | 1 | Backlog Manager | 31/Jan/18 9:05 PM | |||||
|
3h | 1 | Backlog Manager | 01/Feb/18 12:05 AM |