mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
refactor: explicitly specify top redirections for secure payment and payout links (#6494)
This commit is contained in:
@ -144,6 +144,7 @@ if (!isTestMode && !isFramed) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
hyper = window.Hyper(publishableKey, {
|
hyper = window.Hyper(publishableKey, {
|
||||||
isPreloadEnabled: false,
|
isPreloadEnabled: false,
|
||||||
|
shouldUseTopRedirection: isFramed,
|
||||||
});
|
});
|
||||||
widgets = hyper.widgets({
|
widgets = hyper.widgets({
|
||||||
appearance: appearance,
|
appearance: appearance,
|
||||||
|
|||||||
@ -48,6 +48,7 @@ if (!isFramed) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
hyper = window.Hyper(pub_key, {
|
hyper = window.Hyper(pub_key, {
|
||||||
isPreloadEnabled: false,
|
isPreloadEnabled: false,
|
||||||
|
shouldUseTopRedirection: true,
|
||||||
});
|
});
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
widgets = hyper.widgets({
|
widgets = hyper.widgets({
|
||||||
|
|||||||
Reference in New Issue
Block a user