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.

API authentication

API authentication

flyfire_09
Tourist
10 0 1

Hi! I have created a simple feedback app that is not public. How to properly authenticate? in my JS code, the token is passed openly. It's unsafe, isn't it?

var requestOptions = {
  method: 'POST',
  headers: {
    'X-Shopify-Access-Token': accessToken,
    'Content-Type': 'application/json'
  },
  body: ConstructJs,
  redirect: 'follow'
};

the JS file from which requests are made is located in the Shopify files, that is, along with the site.

Replies 0 (0)