iamraphson / react-paystack

ReactJS library for implementing paystack payment gateway
https://www.npmjs.com/package/react-paystack
MIT License
445 stars 159 forks source link

Cannot load paystack inline script when using SharedArrayBuffer #84

Open temitayo-spinel opened 1 year ago

temitayo-spinel commented 1 year ago

I am using SharedArrayBuffer which requires me to set the following headers on my server:

"Cross-Origin-Opener-Policy": "same-origin"
"Cross-Origin-Embedder-Policy": "require-corp"

However it seems the "Cross-Origin-Embedder-Policy" header is preventing the paystack script from loading. I get an error that says: "net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200"

please is there any way I can work around this?