Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 243 Bytes

allow-cross-origin-resource-sharing-cors.md

File metadata and controls

9 lines (7 loc) · 243 Bytes

Allow CORS - Cross origin resource sharing

When writing APIs in PHP, you want other domains to access your server and you can enable it on your sever with this simple header:

<?php
header('Access-Control-Allow-Origin: *'); 
?>