Making a request to an non-VTEX API

Consult a 3rd party API within my backend payment-provider, from my tests and research it would be a matter of configuring policies within the manifest, but I still get the 401 error:

Error:
image

Manifest:
image

App:
image

Could you check if adding a Proxy-Authorization request header with ctx.vtex.authToken as the value solves your issue? If you never used context variables in VTEX IO, here is an example.

1 Like

Awesome @georgebrindeiro ! We had a similar problem yesterday! I will forward this message to my internal team.

1 Like

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