To enable the MONEI checkout functionality in Magento 2.4.7, the csp_whitelist.xml file includes a frame-src policy. This policy adds 'js.monei.com' to the list of allowed sources for iframe content. The relevant section in the XML file is:
This addition to the Content Security Policy (CSP) whitelist ensures that the MONEI JavaScript can be loaded within an iframe during the checkout process, allowing for seamless integration of the MONEI payment gateway.
Otherwise, the credit card cannot be entered, giving this error in the console.
To enable the MONEI checkout functionality in Magento 2.4.7, the csp_whitelist.xml file includes a frame-src policy. This policy adds 'js.monei.com' to the list of allowed sources for iframe content. The relevant section in the XML file is:
This addition to the Content Security Policy (CSP) whitelist ensures that the MONEI JavaScript can be loaded within an iframe during the checkout process, allowing for seamless integration of the MONEI payment gateway.
Otherwise, the credit card cannot be entered, giving this error in the console.