I recently upgraded my Magento store to version 2.4.7-p3 and encountered an issue where the checkout page fails to load. I am using Mageplaza’s One Step Checkout extension.
After some investigation, I found that the problem is related to Content Security Policy (CSP) restrictions. However, I want to keep CSP enabled for enhanced security and ensure the checkout page functions correctly.
Here are the console errors I’m seeing:
[ERROR] Failed to load the “Mageplaza_Osc/3columns” template requested by “checkout”.
[ERROR] Failed to load the “Mageplaza_Osc/js/view/shipping” component.
[ERROR] Failed to load the “Mageplaza_Osc/js/view/form/element/region” component.
[ERROR] Failed to load the “Mageplaza_Osc/container/authentication” template requested by “checkout.authentication”.
Here are the steps I’ve tried so far:
-
Checked browser console logs for CSP violations.
-
Verified that CSP rules in my configuration are in place for other parts of the store.
Despite this, the checkout page still doesn’t load properly.
Questions:
- How can I identify the exact CSP directives that are blocking
resources on the checkout page? - What would be the best way to configure or extend CSP policies
specifically for Mageplaza’s One Step Checkout without compromising
overall security?
Any guidance or best practices for handling CSP with third-party extensions like Mageplaza’s One Step Checkout would be greatly appreciated.
Thank you!