#xkernel

1 messages · Page 1 of 1 (latest)

deft waspBOT
supple needle
#

What do you want to add the header for?

shut elk
#

the redirection is pointed to my dashboard which requires the user login token.
by design, the token is living in the browser cookie but the redirect from stripe cannot use it.
Therefore the redirection is always kicked out from the dashboard after redirection due to lack of user's token.

so i need to attach it to the redirect url

#

is that even possible to add header to it?

supple needle
#

No, that will not be possible

shut elk
#

so what is the solution? what is the meaning of return url if cannot get back to the dashboard settings?

supple needle
#

Stripe will redirect the user back the return_url set. One way is to attach the token to the URL set in return_url as query parameter instead of setting it as a header. For example, the URL will look like https://www.example.com/acct_xxx?token=tok_123

shut elk
#

One way is to attach the token to the URL set in return_url as query parameter instead of setting it as a header

which is an insecure way

#

because the URL's are not being encrypted via SSL

supple needle
#

I'm afraid there is no other way to pass other information other the above suggested way