Hi, I am building an app which loads a script_tag into the store, rendering a button as a React component. As part of the React component, I want to send POST and GET requests to my backend API (api.myserver.com). These request should include some sort of customer identification so that I can authenticate and authorize the requests.
I'm new to the Shopify platform so I'm still trying to get my head around a few things. Thanks in advance for the help!
1. An AJAX request.
2. A proxy is a nice to have - you could also just send the request directly to your endpoint.
3. Yep, all data will be forwarded.
5. The embedded app is just loading your app in an iframe, so you can send requests anywhere you like.
Let me know if you have any questions!