You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently upgraded from JSS 21.2.2 to 21.5 and now CORS headers are no longer applied.
I have found the culprit, it seems to be caused by NextJS version 13.4.16, and by downgrading to 13.4.12, the headers work as expected.
To Reproduce
Test a JSS site utilizing Google local fonts in Pages and see CORS related errors on static font files
Expected Behavior
We have added Access-Control-Allow-Origin like this:
Describe the Bug
We recently upgraded from JSS 21.2.2 to 21.5 and now CORS headers are no longer applied.
I have found the culprit, it seems to be caused by NextJS version 13.4.16, and by downgrading to 13.4.12, the headers work as expected.
To Reproduce
Test a JSS site utilizing Google local fonts in Pages and see CORS related errors on static font files
Expected Behavior
We have added Access-Control-Allow-Origin like this:
With NextJS 21.5, the headers are not added
Possible Fix
A possible fix is to downgrade NextJS 13.4.12
Provide environment information
The text was updated successfully, but these errors were encountered: