firebase / firebase/functions-samples
Cross-origin error with Stripe library
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 3.8k
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 1
Description
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)
```
Contributor guide
Assessment
This issue has not been assessed yet.