CORS not working php
Finally, I myself have solved the problem explained in the question. The code that I have implemented for accessing header is incorrect. The below mentioned two line code, when given, didn’t work: <?php header(‘Access-Control-Allow-Origin: *’); header(‘Access-Control-Allow-Methods: POST, GET, OPTIONS’); ?> But handling CORS requests properly is a tad more involved. Here is a function that … Read more