Skip to content

Commit b243927

Browse files
committed
MC-38797: Fix js errors for recaptcha
1 parent c40ce69 commit b243927

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
9+
<policies>
10+
<policy id="frame-src">
11+
<values>
12+
<value id="google_com" type="host">https://www.google.com/recaptcha/</value>
13+
</values>
14+
</policy>
15+
<policy id="script-src">
16+
<values>
17+
<value id="gstatic_com" type="host">https://www.gstatic.com/recaptcha/</value>
18+
<value id="google_com" type="host">https://www.google.com/recaptcha/</value>
19+
</values>
20+
</policy>
21+
</policies>
22+
</csp_whitelist>
23+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
9+
<policies>
10+
<policy id="frame-src">
11+
<values>
12+
<value id="google_com" type="host">https://www.google.com/recaptcha/</value>
13+
</values>
14+
</policy>
15+
<policy id="script-src">
16+
<values>
17+
<value id="gstatic_com" type="host">https://www.gstatic.com/recaptcha/</value>
18+
<value id="google_com" type="host">https://www.google.com/recaptcha/</value>
19+
</values>
20+
</policy>
21+
</policies>
22+
</csp_whitelist>
23+

0 commit comments

Comments
 (0)