I just wrote two php files to learn how ajax works. but chrome reported such error:
XMLHttpRequest cannot load file:///E:/myFolder to Ajax/AjaxUserCheck/AjaxUserCheckegisterProcess.php?username=fs. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I saw suggestions to add flag
--allow-file-access-from-files
in chrome, but I still failed after using this. Do anyone know how to solve this? thanks in advance.