Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

CORS error when invoking Pega REST Service



Error occurs on invoking the Pega 7.3.1 REST Service from an AngularJS application on the localhost:4200 in the browser console.

Error Messages

Access to XMLHttpRequest at 'http://abcw:8080/prweb/api/v1/data/D_VertragsListe' from origin 'http://localhost:4200' 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.

Steps to Reproduce

  1. Create a data page in Pega 7.3.1 which is deployed on JBOSS 7 or Oracle.
  2. Create an Endpoint policy CORS exception.
  3. Invoke the API Serivce from the AngularJS application.
  4. Post to the endpoint.

Root Cause

A defect in Pegasystems’ code or rules.
The header was not set. CORS did not send the Access-Control-Allow-Origin header.


Apply HFix-42650 and restart the server.

Published October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us