Error with fetch

hi community!

I am trying to bring some data from the master data to my app. But I am not getting it, when I try with postman it works but from my .js script it gives me an error. Does anyone have a clue what could be going on?


The request should be with the same domain from the webpage. Maybe this page helps.

But please do not use the X-VTEX-API-Appkey in a javascript because anyone can get it and try to fetch all your data. Try to use SafeData instead.