I copied a script that works on one server to another but it doesn’t work on that server. To troubleshoot it I created a test file with just this code
The sidebox_ajax_test.php file just has this
<?php echo 'done';
I uploaded the two files to both servers. When the test page is visited, on the first server the console shows
show box XHRPOSThttp:.../sidebox_ajax_test.php good result
On the second server it shows
No errors are thrown, that I can see. Both accounts on the servers are using php 7.4. I saw many posts about a similar problem that said CORS needs to be enabled and it is on both servers. Any ideas on how to fix this or what to try?