PHP CORS Header

<?php // This must be before any output has been sent from the server. header("Access-Control-Allow-Origin: *");
Cross-Origin Resource Sharing (CORS) header for PHP. Allows access to resources served to other domains.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.