hub icon indicating copy to clipboard operation
hub copied to clipboard

Safari (macos) Invalid request error

Open zygimantas opened this issue 1 year ago • 7 comments

Invalid Request in

macOS Safari Version 17.5 https://localhost:4200 and https://production @nimiq/hub-api": "1.8.0"

The same error in both: checkout and chooseAddress

Fails on regular and incognito mode Works on iOS Safari, works on Brave

Nothing interesting in console.

image image

zygimantas avatar Jul 13 '24 17:07 zygimantas

Can you share a minimal reproduction repo?

Albermonte avatar Jul 19 '24 19:07 Albermonte

I've identified the cause of the issue. It's in Safari settings.

Screenshot 2024-07-21 at 14 30 03

"Use advanced trancking and fingerprint protection" breaks the wallet.

zygimantas avatar Jul 21 '24 11:07 zygimantas

Reopening, just in case something can be done in wallet's implementation.

zygimantas avatar Jul 21 '24 11:07 zygimantas

To make things worse, pinned tabs in safari also does not work with wallet with the same error, because, as I understand, Safari opens the wallet in a different tab and because of isolation, session storage is null.

zygimantas avatar Jul 21 '24 13:07 zygimantas

Not able to reproduce it, I have tried in testnet and everything is working as expected, pinnned tab included. If you have a minimal reproduction repo would be helpful to debug since your issue might be related to localhost limitations

Albermonte avatar Aug 01 '24 16:08 Albermonte

I have made a short video of it happening in non local environment + testnet. PS. What also may be useful - if you change settings in Safari, you must open a new tab to apply them.

https://github.com/user-attachments/assets/56642a83-0150-4704-914f-36c283dc11e8

zygimantas avatar Aug 01 '24 16:08 zygimantas

Seems like it's only happening in POS Testnet, at least I cannot reproduce it in Mainnet or POW Testnet. Maybe @sisou knows more about it

Albermonte avatar Aug 02 '24 11:08 Albermonte