You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to some recent Csp security fixes, both versions of your module doesn't work.
VM11861:5 Refused to execute inline script because it violates the following Content Security Policy directive: "(...)" Either the 'unsafe-inline' keyword, a hash ('...'), or a nonce ('nonce-...') is required to enable inline execution.
Due to some recent Csp security fixes, both versions of your module doesn't work.
The offending code I believe is:
tpay-magento2-basic/Model/ApiFacade/TpayConfig/ConfigOpen.php
Line 68 in dfabe43
tpay-magento2-basic/Model/ApiFacade/TpayConfig/ConfigOrigin.php
Line 69 in dfabe43
And for the ^1.0.0 version:
The fix should be adding nonce attribute to the script as suggested in the console log.
Reference from Adobe: https://developer.adobe.com/commerce/php/development/security/content-security-policies/#using-csp-nonce-provider-to-allow-inline-scripts
EDIT: Also, it seems it's jQuery error: https://stackoverflow.com/a/42464060
The text was updated successfully, but these errors were encountered: