where to set Access-Control-Allow-Origin: code example
Example 1: php access origin
<?php
header("Access-Control-Allow-Origin: *");
Example 2: header access-control particular domain
Access-Control-Allow-Origin: http://siteA.com
<?php
header("Access-Control-Allow-Origin: *");
Access-Control-Allow-Origin: http://siteA.com