php header accept post request from same domain

Solutions on MaxInterview for php header accept post request from same domain by the best coders in the world

showing results for - "php header accept post request from same domain"
Cheryl
14 Jan 2019
1<?php
2// Cross-Origin Resource Sharing Header
3header('Access-Control-Allow-Origin: http://base.com');
4header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
5header('Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept');
6?>
7
similar questions