Hello Y'all,
My web api always returns a wrong url even though I specified the correct url in the appsetting of the web config.
it always return
http://fid.abctech.com/NCAA/fid.abctech.com/api/Bills/GetIataBilled
which the response is 404 (Not Found) because the correct url is
http://fid.abctech.com/api/Bills/GetIataBilled
It seems the call getthe host url along with the api url because
fid.abctech.com appears twice instead of once.
People pls help me look into this.
Thanks
It looks like you're missing a "/" somewhere, you might be stripped it from the front of a url.
href="/api/bills/getiatabilled" - this will work
href="api/bills/getiatabilled" - this will give you the problem you're seeing
沒有留言:
張貼留言