AnsweredAssumed Answered

How to resolve : Cross-Origin Request Blocker Issue while calling REST Services

Question asked by VSRIVASTAVA Employee on May 2, 2017
Latest reply on Jan 12, 2018 by Katherresh Shanmugasundaram

I am trying to call HCI APIs from development environment(localhost:4200) using Angular 2 (version 4.0.0)


getting the below error message:

"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:8000/auth/oauth. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)."


Here I am providing a code sample for reference:

var headers = new Headers();

headers.append('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');


return, 'POST_Parameters', {

       headers: headers

}).map(res => {




Can someone please help me to find out solution for this issue?