Next.js Discord

Discord Forum

What is the origin of the request from Next JS Api

Unanswered
Mossyrose gall wasp posted this in #help-forum
Open in Discord
Mossyrose gall waspOP
I'm using the next JS api to make a call to a third party application. I've whitelisted my domain and localhost (just for development) for the thirdparty api key.
But now the third party isn't able to determine the origin of the request that the api file is making.
If I do not whitelist localhost and make a request, I get an error on the dashboard saying "localhost not on whitelist"
but when i make using the api folder, i get "unspecified origin not on whitelist". It means that it's not able to catch the origin of the request. How do I set the origin of requests from the API folder to be the same as from my domain?

0 Replies