Cors Issue in Angular and IBM webseal configuration

1.2k views Asked by At

My angular application is configured with webseal. So I use the webseal url to access my angular application in the browser .When I use the webseal url the browser automaticatlly redirects the url to my web server url and the portal loads.The problem is the same webseal domain API url is used in the application to make REST API calls and because of which I get CORS error in the browser. (ie) trying to access another domaim from a different domain. Please help on how to handle this.

2

There are 2 answers

3
Mike Tung On

One thing you can do is on the webseal side, allow clients to access OPTIONS and CORS headers. Since you didn't give anything that can be reproduced or concrete I can't be of further help.

1
Dulaj_dmhrockx On

Add CORS blocker to your browser (ex:Allow-Control-Allow-Origin: * for Chrome). Sometimes this will not work for POST methods. Therefore you have to handle this issue from the backend.