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.


1 Like

Thank you Saito!

Your recommendations helped me solve the problem, then I had trouble with MasterData’s SafeData but I had to stop that app, and I haven’t looked at it again.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.