insert the header before sending the response. header('Content-Type: application/json'); header("Access-Control-Allow-Origin: *"); you can read for cors error. https://medium.com/@buddhiv/what-is-cors-or-cross-origin-resource-sharing-eccbfacaaa30
Обсуждают сегодня