Answers for "enable cors php server"

PHP
2

how to allow cors through header in php

<?php
 header("Access-Control-Allow-Origin: *");
Posted by: Guest on July-30-2020
2

php cors disable

header('Access-Control-Allow-Origin: *');

header('Access-Control-Allow-Methods: GET, POST');

header("Access-Control-Allow-Headers: X-Requested-With");
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language