Answers for "php header cors blocked by cors"

PHP
2

how to allow cors through header in php

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

php has been blocked by CORS policy

header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET,HEAD,OPTIONS,POST,PUT");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");
Posted by: Guest on October-18-2020

Browse Popular Code Answers by Language