Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ngrok is creating local tunnel but url origin not match when call api on webpage?

sumit bhayani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018


ngrok push data local to server.

i am creating one Api on page,

Api call at that time Request header use "Origin" https://b25d370c.ngrok.io

that's why i got a error 403.

so mainly how can i pass in Request header origin on default domain name.asas.png

1 answer

2 votes
Lava Kumar Dukanam _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2018

Hi @sumit bhayani,

This is expected behavior, It reads from credentials.json.

If you want to skip that you will have to start your server with 

AC_LOCAL_BASE_URL=https://b25d370c.ngrok.io node app.js  

Hope it helps!

Thanks,

Lava 

Suggest an answer

Log in or Sign up to answer