Question

11
Replies
2253
Views
RajuBadkal Member since 2014 9 posts
Adqura
Posted: April 15, 2016
Last activity: October 4, 2018
Closed
Solved

CORS- Pre-Flight Requests Failing

We are trying to access REST service exposed from pega application from another web application.

We configured HTTP header as below for CORS.

cors-config.png

However, requests are failing with below errors:

XMLHttpRequest cannot load http://myPegaApp.com/Service. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myAnotherApp.com' is therefore not allowed access.


Do we have to configure OPTIONS method to pass preflight request? Are there any other configurations to be done to pass preflight requests?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Data Integration
Moderation Team has archived post
Share this page LinkedIn