Error "Shopify Remix Extension - API POST Call Not Working but Works on Admin Side"

Error "Shopify Remix Extension - API POST Call Not Working but Works on Admin Side"

Iamumar12
Shopify Partner
3 0 0

I'm working on Shopify Remix, but the API POST call is not working on the extension side. However, the same API call works fine on the admin side. I've attached my code below. Can you suggest a solution?
Response 
Bad request
No host provided

Replies 3 (3)

Blackpent
Shopify Partner
10 0 0

Hello!

Sorry, where is the code you've attached? 😶

Iamumar12
Shopify Partner
3 0 0

this is my code 

Blackpent
Shopify Partner
10 0 0

In the attached file indicated at the end:

" this is an error show "
"Request URL:"
"https://viral-hms.myshopify.com/apps/proxy/notify"
"Request Method:"
"POST"
"Status Code:"
"400 Bad Request"
""
"Response"
"No host provided"


It seems that the URL configured to be proxied by Shopify is wrong or the destination address is not right.

I'd start checking those values.