The chat_send.php AJAX POST request returns HTTP 200 with Content-Type: text/html containing InfinityFree browser verification JavaScript instead of the expected JSON response.
Other Information
The request already includes the __test cookie. Additionally, customer_chat.php returns 403 Forbidden, while its copy support_messages.php loads.
The __test cookie is already included in the request.
Hard-refreshing the page does not resolve the issue.
Welcome to the InfinityFree community forum! Good to have you here.
Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
Solving an issue is a joint effort. Try the suggestions you get and report back what happened.
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
The 403 on customer_chat.php is the “chat” keyword block. The security check page is probably a separate problem, and I’m not sure of its cause yet.
Our 403 article lists “chat” as a blocked keyword in URLs, because live chat scripts constantly refresh pages and create a lot of server load. It says that renaming the files, as you did with support_messages.php, gets around the block. It also says hosting live chat scripts is still prohibited, so a chat that polls for new messages could still be a problem on free hosting.
That article is here:
On the verification page, the browser security article says AJAX calls within your own website work fine. Your chat_send.php URL also contains “chat”, so it’s worth renaming it before debugging further. The article describes the page you’re seeing: it loads /aes.js, sets a __test cookie and redirects to the same URL with ?i=1 added. It says that page is returned to anything that can’t run the check, such as a script or a cross-domain request.
The article is here:
Can you paste the exact URL your fetch calls for chat_send.php? I’d like to see whether it’s a relative path or a full address, and whether the host matches the page exactly, including https:// and any www.. A cookie set for one host isn’t sent to another, so a mismatch would make the check run again.