AnsweredAssumed Answered

Cross-Origin Request Blocked - Reason: CORS header ‘Access-Control-Allow-Origin’ missing

Question asked by faheempb on Jul 3, 2017
Latest reply on Jul 13, 2017 by norre01

We are trying to virtualize one REST API which is hosted on one of our server. We are using DevTest 10.1 workstation for this activity.

 

We are successfully able to virtualize this API and able to get JSON response directly into the browser. However, when we try to use this virtualize image in a client application (in this case Angular JS) I am getting below error message.

 

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://10.20.30.40:8050/api/employee/GetAllEmployee. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

 

Although client application is giving correct response with the real service.

 

Is there any specific setting on DevTest to fix this issue?

Outcomes