CORS error when using react SDK with community edition

We are currently experiencing a CORS issue when trying to setup the React SDK sample MediaCo app, with a fresh community edition environment.

The issue with the sample is seen when clicking to create the case in the mashup view

The issue specifically is in the Chrome console:

Access to XMLHttpRequest at ‘https://CEEnvironmentURL/prweb/api/application/v2/cases?viewType=page&pageName=pyEmbedAssignment’ from origin ‘http://localhost:3502’ 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.

CORS policy match the one here: Pegasystems Documentation

1 Like

@Phill99J
With Infinity 23, there is a need to add an additional header within the APIHeadersAllowed policy within Allowed headers:
x-constellation-app

I believe that should resolve your CORS issue

@serav That works great thanks