#suchishah.

1 messages · Page 1 of 1 (latest)

polar ravineBOT
solar wind
#

Hi
What Stripe Integration are you using ?

#

the thing is, window.open and window.location.href is not working due to security reason
Can you share more details about this please ?

thorny canyon
#

I am implementing stripe app by using stripe components

solar wind
#

I mean Stripe Link, Checkout or ELement?

thorny canyon
#

There is an external url which needs to be redirected by clicking on Button

solar wind
#

what is blocking you from dowing that ?

thorny canyon
solar wind
#

What Stripe product are you using there ?

thorny canyon
#

It just redirects to some html content

#

Just need to know how am I going to redirect to some external Url?

solar wind
#

Sorry, but I don't understand what is the link with Stripe APIs.

#

You probbaly need to reachout to the maintainer of that website that you want to load inside an iframe

thorny canyon
#

Now the requirement is, After user submits successfully then I want to redirect to '/externalUrl'

#

by programatically

#

I am using window.location but not working due to security reasons and got error "Refused to frame '/externalUrl' because it violates the following Content Security Policy directive: "frame-src 'self"

solar wind
#

I am using window.location but not working due to security reasons and got error "Refused to frame '/externalUrl' because it violates the following Content Security Policy directive: "frame-src 'self"
That's an issue on your External Url and not Stripe Side

#

that website is blocking you from loading that page inside an Iframe

thorny canyon
#

So, what should I do?

solar wind
#

You need to check with the maintainer of that website and see why you can't open it in iframe

#

it has no link with Stripe Apps

#

You see what I mean

#

that website is blocking and not Stripe App

thorny canyon
#

Blocked opening '/externalUrl' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.

#

What about this error?

thorny canyon
#

But the thing is, I don't want to redirect on button click. I call an api on button and after getting success response, I want to redirect to another page.

solar wind
#

You can make the APi call in another tab too