How to handle redirects and non-200 response when proxying?
Unanswered
Silver Marten posted this in #help-forum
Silver MartenOP
I see that in recent versions of Next a simple way to proxy external API requests to avoid CORS is to use the
rewrites property in next.config. If the 3rd party API responds with a non-200 response, how is this best handled? Do we have to create a middleware?