smartex / module-page-builder-require-js-fix
Fix for requirejs-config in page builder stage render page
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: ^103.0.0
- magento/module-require-js: *
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