Skip to content

Instantly share code, notes, and snippets.

@r-martins
Created June 25, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save r-martins/403115ef92633701e46cd69855acf160 to your computer and use it in GitHub Desktop.
Save r-martins/403115ef92633701e46cd69855acf160 to your computer and use it in GitHub Desktop.
Whitelist CSP PagSeguro Domains
<?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="pagseguro-static" type="host">https://stc.pagseguro.uol.com.br</value>
<value id="pagseguro-static-sandbox" type="host">https://sandbox.stc.pagseguro.uol.com.br</value>
</values>
</policy>
<policy id="frame-src">
<values>
<value id="pagseguro-main" type="host">https://pagseguro.uol.com.br</value>
<value id="pagseguro-main-sandbox" type="host">https://sandbox.pagseguro.uol.com.br</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="pagseguro-images" type="host">https://pagseguro.uol.com.br</value>
<value id="pagseguro-images-sandbox" type="host">https://sandbox.pagseguro.uol.com.br</value>
<value id="pagseguro-static" type="host">https://stc.pagseguro.uol.com.br</value>
<value id="pagseguro-static-sandbox" type="host">https://sandbox.stc.pagseguro.uol.com.br</value>
</values>
</policy>
</policies>
</csp_whitelist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment