Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263 stars 275 forks source link

[sitecore-jss-nexts] Consider existing CORS header when running enforceCors #1801

Closed art-alexeyenko closed 6 months ago

art-alexeyenko commented 6 months ago

Description / Motivation

Followup to https://github.com/Sitecore/jss/pull/1798 EnforceCors function should also check the previously set CORS headers if present, as editing middleware will be requested from sitecoreApiHost too.

Testing Details

Types of changes