smartex/module-page-builder-require-js-fix

Fix for requirejs-config in page builder stage render page

1.0.0 2024-10-29 21:22 UTC

This package is auto-updated.

Last update: 2025-04-30 17:50:34 UTC


README

Fixes an issue with the page builder render iframe, where the requirejs-config.js file is prevented from loading due to CORS.

See: magento/magento2#39076 (comment) for an explanation of the cause of this.

To fix the issue, we move the "requirejs-config.js" file back into the normal js asset group using a block. This prevents the integrity and crossorigin attributes from being applied to the asset, and allows the fix to be applied only where needed, like on specific pages.

Currently only tested on open source 2.4.6-p6