Failed to load resource: the server responded with a status of 404 (Not Found). with ajax in caph

1k views Asked by At

I am trying to do an ajax GET request from caph. I am getting the following error

Failed to load resource: the server responded with a status of 404 (Not Found).

For the same url I am getting the response in Browser. Also if I am trying to do the same ajax GET request for the different API on the different server, I am getting the response.

What could be the reason for this?

1

There are 1 answers

0
Abhishek On BEST ANSWER

I was missing the Accept Header. Now it is working fine.