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
11196 226 2287

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.