It doesn’t work because requests here come from a third-party source, which only specifies Content-Type and Accept when sending the request. Using Postman, I found out that headers are required Host and User-Agent (with this headers response status code 200, otherwise 429). Is it possible to somehow fix this on the side of my site?
I can’t change the request because it comes from a third party application. but I need to process this request correctly.
The question is how to bypass the WIX limitation of no headers Host and User-Agent in request.
Thank you. I know about axios. But that won’t help me because it’s a client package. And in this situation I am the server. I can’t get the client to add the headers I need to its request. And I can’t process this request correctly using the http function in wix because of the requirement.