ScriptTag with widget - secure requests to server

pawelsobota
Tourist
5 0 0

I build an app which adds ScriptTag (widget which can make ajax request to my server when user clicks a button). How can I secure my server to receive requests only from shops which have installed my app? How can I make some sort of token authentication or other authentication when ScriptTag is a pure JavaScript and it's not secure to store any token in ScriptTag?

 

Thank you in advance

0 Likes
SBD_
Shopify Staff
Shopify Staff
1065 143 186
viktor_87
Tourist
6 0 2

Any other way since the proxy adds around 1.4 seconds to the call?

0 Likes