functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

Cross-origin error with Stripe library

Open ghost opened this issue 4 years ago • 0 comments

I've tested this ready-to-use code on my two projects and I have the same error. I haven't change anything in the code. I just set my private and public keys for stripe and enabled email sign-in. And I know I shouldn't embed the Stripe library for security reasons. So, how can I solve this issue? Did anyone had the same error as me?

[Error] Failed to load resource: The file “purify.js.map” couldn’t be opened because there is no such file. (purify.js.map, line 0)
[Error] SecurityError: Blocked a frame with origin "https://js.stripe.com" from accessing a cross-origin frame. Protocols, domains, and ports must match.
[Error] Failed to load resource: The file “purify.js.map” couldn’t be opened because there is no such file. (purify.js.map, line 0)
[Error] SecurityError: Blocked a frame with origin "https://js.stripe.com" from accessing a cross-origin frame. Protocols, domains, and ports must match.
[Error] Failed to load resource: The file “purify.js.map” couldn’t be opened because there is no such file. (purify.js.map, line 0)
[Error] SecurityError: Blocked a frame with origin "https://m.stripe.network" from accessing a cross-origin frame. Protocols, domains, and ports must match.
[Error] Failed to load resource: The file “purify.js.map” couldn’t be opened because there is no such file. (purify.js.map, line 0)
[Error] Failed to load resource: The file “purify.js.map” couldn’t be opened because there is no such file. (purify.js.map, line 0)

ghost avatar Apr 14 '21 13:04 ghost