Hello, I am trying to send a request to Rest API ( no need to GraphQL )... my request is to get products from the API.
you can see what I've done in the image attached.
This request works only if I am authenticated as the store's admin, it doesn't work in a private browser or when you're not authenticated.
I have looked for this issue in Google, and I found that because the access token wasn't added, but I did and I can see it as a request's header in Chrome's DevTools
Solved! Go to the solution
The title of the topic is about the storefront API, but you're not using the storefront API.
Now if you're using the Rest ADMIN api via the browser I'm ok with this not working.
This would expose the key and password to anyone looking at the source so is a pretty scary security issue.
What's the reason why are you doing things this way?