Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1325

How do I add a CORS header to allow using iFrame to load link from Create Payment Link

$
0
0

How do I add a CORS header to allow using iFrame to load link from Create Payment Link

When I try to load the link returned from the Create Payment Link into an iframe I get this error. The dialog opens but its blank due to the CORS error.

Access to XMLHttpRequest at ‘https://square.link/u/111111’ from origin ‘https://www.mydomain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Is there somewhere in the Square settings where I can allow mydomain to make inbound calls?

When I open the link using window.location it works. However opening in a dialog and iframe throws the CORS error.

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1325

Trending Articles