+91 7002160093 / 7002484119 HOSTEL FACILITIES AVAILABLE Download App
Uncategorized

How to enable CORS

Admin August 27, 2023 49 views

Cors means Cross-origin resource sharing which should be enable to establish the communication between a mobile app and a website


<?php 

header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: Content-Type");

?>

Share this article: