#Laravel CSP & Google Pay

2 messages · Page 1 of 1 (latest)

tired raven
#

I am trying to implement the payment gateway of google pay in my app but when i add the script:

<script
  async
  src="https://pay.google.com/gp/p/js/pay.js"
  onload="console.log('TODO: add onload function')">
</script>

It block the load of the script if i try to exclude following the docs of laravel-csp for some reasons doesnt work include if i add directly to my header logic but if i disable the csp it load without any problems

bronze stirrup
#

Open your browser's devtools and it'll show the violation, that's what you'd need to add