-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.4.5-p12] CORS Errors Prevent Page Builder Content Updates (Production Mode) #39250
Comments
Hi @anasshl. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
It sounds like the Nginx configuration isn't right or is being ignored. Have you tried the wide open configuration to test? |
Same for me, seems no config error. I use apache. Adding this into apache vhost config fixed it: But as it worked fine before this is not a good solution The reason for this behavior can be found in this file: vendor/magento/module-csp/Plugin/AddDefaultPropertiesToGroupPlugin.php
After setting the integrity, CORS will block the requested file. So when integrity with crossorigin is set, the Access-Control-Allow-Origin header also have to be set. |
Hi @anasshl, Thanks for your reporting and collaboration. We have verified the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots. Steps to reproduce
![]() ![]() The Page Builder changes fail to save. Hence Confirming the isuue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13294 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
Facing the same issue. Only solution is to add the Access-Control-Allow-Origin "*" header to NGINX which I'd rather not |
You can also circumvent the problem by running The issue seems to be caused by the SRI feature of Magento's CSP module which adds an However, due to the way SRI hashes are stored in cache when running the SCD command (which is considered a bug), the issue can - at the moment - be very easily circumvented by flushing the cache, this also means you loose the SRI protection on scripts though, so you'll have to decide which one you like better. |
I commented on the issue linked by hostep not long ago, but might as well here too. I created a small module to fix the issue only on the pagebuilder_stage_render page. Tested with open source 2.4.6-p6 |
The same issue occurs on product save from admin in Magento version 2.4.7-p3 |
@engcom-Bravo What's the current status? |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-13547 by the internal team Based on the Jira ticket, the target version is 2.4.8. Thanks |
Preconditions and environment
Environment:
Quality Patches:
Steps to reproduce
Expected result
Actual result
Additional information
Note: This problem occurs only in production mode, the Page Builder works fine in developer mode.
We have attempted the following workarounds without success:
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: