Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Hide Admin API access token from fetch requests made with Javascript in the theme files

Hide Admin API access token from fetch requests made with Javascript in the theme files

gi10
Shopify Partner
2 0 0

What's the best way to hide Admin API access token from fetch requests made with Javascript in the theme files?

Replies 2 (2)

Jason
Shopify Partner
11207 226 2321

Don't make Admin API requests with JavaScript in your theme files to start with.

Make a call to an app that will correctly and properly secure access. 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★

theapemachine
Shopify Partner
16 1 3

Use app proxies.