Question : php cors allow origin
Answered by : akbarali
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With");
Source : | Last Update : Wed, 20 Oct 21
Question : how to allow cors through header in php
Answered by :
<?php header("Access-Control-Allow-Origin: *");
Source : https://enable-cors.org/server_php.html | Last Update : Thu, 06 Aug 20
Question : php cors allow methods
Answered by : tiago-frana
HTTP/1.1 204 No Content
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,HEAD,PUT,PATCH,POST,DELETE
Vary: Access-Control-Request-Headers
Access-Control-Allow-Headers: Content-Type, Accept
Content-Length: 0
Date: Fri, 05 Apr 2019 11:41:08 GMT
Connection: keep-alive
Source : https://auth0.com/blog/cors-tutorial-a-guide-to-cross-origin-resource-sharing/ | Last Update : Wed, 28 Sep 22