QUESTION:
We have installed version 2.2.4 on my site Magento 2.3.5_p1
The module has Google address auto-complete function. We have created an API and entered it in the one-page checkout BSS backend setting. After update and deployment and clearing the cache the address auto-complete seems not to work.
ANSWER:
To fix this error, please add file Bss/OneStepCheckout/etc/csp_whitelist.xml as below:
<?xml version="1.0"?>
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="script-src">
<values>
<value id="google-map" type="host">https://maps.googleapis.com</value> </values>
</policy>
<policy id="connect-src">
<values>
<value id="google-maps" type="host">https://maps.googleapis.com</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="google-maps-image" type="host">https://maps.gstatic.com</value>
</values>
</policy>
</policies>
</csp_whitelist>If you need any further support, please feel free to contact us
BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.
We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.
Visit our store: https://bsscommerce.com/magento-2-extensions.html
Don't forget to discover our top tier extensions that might boost your store performance:
- BSS Commerce’s Magento 2 B2B Extension is a trusted solution for managing complex B2B operations with ease and flexibility.
- BSS Commerce’s Magento 2 SEO Extension is a reliable tool to strengthen your SEO strategy and drive sustainable growth.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article