CORS Error with REST2 API calls


Here is my problem. I’m trying to access an RT running on my own server, through an application (angular) currently running locally on another domain, using REST2 API calls.
However, I run into the following problem every time:
“Access to XMLHttpRequest at ‘’ from origin ‘localhost:4200’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.”

I got CORS error. So I have added in my apache rt.conf file and tried many other things (it is loaded):

Header set Access-Control-Allow-Origin “*”

I also tried CAS based on this topic, but that didn’t work either.

The error is still exist, can you help me with any ideas?
Any suggestions are welcome.


I’ve got similar issue