Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration only works from default scope #2

Open
igi8819 opened this issue Nov 2, 2021 · 0 comments
Open

Configuration only works from default scope #2

igi8819 opened this issue Nov 2, 2021 · 0 comments

Comments

@igi8819
Copy link

igi8819 commented Nov 2, 2021

Only default scope configuration is working, if we add into website or store view scope it is not working.

Missing store id or website id in the "vendor/ctidigital/magento2-csp-whitelist/Helper/Configuration.php" file.

Need to be:
$policies = $this->scopeConfig->getValue(self::CONFIG_POLICIES, ScopeInterface::SCOPE_STORE, $storeId)

If it is not needed to be editable from website/store view than need to disable in sysmtem.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant