Question
· May 30, 2019

No 'Access-Control-Allow-Origin' header issue with Cors issue.

Hi All,

I have a REST dispatcher class in which I enabled the  Parameter HandleCorsRequest = 1;

I can able to access the API using Postman, but not with my web application. It throws the below error.

Access to XMLHttpRequest at 'https://ec2-10-200-XXX-X.com/REST/MRM/get/Message?MessageCode=ERR0006&La...' from origin 'https://ec2-80-106-XX-XXX..com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Is this something need to be modified in the apache config file ? and where to include ?

also I can see in the Web Trace at CSP GW - this call is returned with 404 error.

Thanks,

Krishna

Discussion (3)0
Log in or sign up to continue