I'm trying to access the list of themes and also to post an asset to the stores assets using the Admin API via my app's admin.
When attempting a call like:
I receive a CORS (‘Access-Control-Allow-Origin’ missing) error.
Can anyone help with this? Can the Admin API be accessed from the admin of an embedded app?
sircameron --
Someone can correct me if I'm wrong, but I do not believe requests from the browser (client) to the Admin API is a good idea +/or possible. I'd recommend obtaining an access token and making such requests from the server of your embedded app.
This article outlines how: https://shopify.dev/tutorials/authenticate-with-oauth
Hope that helps!
User | Count |
---|---|
11 | |
11 | |
6 | |
5 | |
4 |