Saturday 20 January 2018

php - Ajax request works on Linux but not on my windows localhost

I'm unable to figure this out for quite some time now. The
ajax request works perfectly on a linux machine set up remotely but renders a 403 error
when I try the same request on a windows
machine.



Linux machine request
log




href="https://i.stack.imgur.com/DkUEi.png" rel="nofollow noreferrer"> src="https://i.stack.imgur.com/DkUEi.png" alt="This is the request log for Linux
environment">



Windows
local machine request log



href="https://i.stack.imgur.com/iQvoJ.png" rel="nofollow noreferrer"> src="https://i.stack.imgur.com/iQvoJ.png" alt="This is the request log for Windows
environemnt">



Thanks in
advance

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...