Question

How to add CORS Header to Mashups

Access-Control-Allow-Origin: <HostDomain>

How can I include the above header in the mashup that snippet that is generated. I've already included the domain as a Trusted Origin and have the appropriate content policy mapped to the Application but still facing issues with Cross Domain errors on few scenarios. So would like to add our parent site's domain as part of the Mashup header.

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

Pega
November 5, 2019 - 12:04am

November 19, 2019 - 8:03pm

Thanks for your resonse gundk

Above solution only works for APIs, I don't see any place we can add CORS headers for Pega mashups