POST request is wrong

Hello.
Could you please help me with an http POST request in my web service. I couldn’t figure out what I was doing wrong.
I have a web service in a domain like “example.onrender.com”. And I have an index.php file in the root of my application. I need to get the response from a .php file by making a POST request to the correct endpoint of my application, but there are some "page not found " errors in the browser console. Can you help me please.

const response = await fetch(‘https://example.onrender.com/index’, {
method: ‘POST’,
body: jsonData,
headers: {
‘Content-Type’: ‘application/json; charset=utf-8’,
},
});

Hey,

Could you share more specifics about the issue, what you’ve attempted, and so on? “Not found” isn’t particularly the symptom of an error but simply the fact the path you’re requesting doesn’t exist on the server.

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.