We are receiving the CORS policy error while executing a POST call from the Angular JS code (AJAX) . The current pega version is 8.2. As per few recommendation, we have already added the necessary headers as part of our post method response. also we modified the Endpoint-CORS policy mapping with endpoint as * and also with specific URL. Even inside the Allowedall CORS policies, we have added the necessary headers , exposed headers but still the CORS issue exists.
We tried with both basic and as well OAUTH authentications and still we get CORS policy errors.
Is there any way we can test and ensure all the settings are correct from the Pega application perspective.
Appreciate any form of help
***Edited by Moderator: Lochan to update platform capability tags***
Next, open the Endpoint-CORS policy mapping record (Configure>Integration>Services>Endpoint-CORS policy mapping): • the endpoint api/ should have a policy of APIHeadersAllowed • if there is a “cases” endpoint, delete it