v2.2.4: How to fix the error Tracking Address function doesn't work?

Created by Jane D, Modified on Tue, 4 May, 2021 at 11:59 AM by Jane D

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 assistance, please feel free to contact us. We'd be happy to support!  




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article