php – header – Access-Control-Allow-Origin

Od posmura

 

Access-Control-Allow-Origin is typically declared as an HTTP header to enable a browser to fetch content from remote domains.

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Origin: https://xxx.yyyy.zz');