Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/cors.php Secret

Created Dec 19, 2020
Embed
What would you like to do?
<?php
$dominioPermitido = "http://localhost:3000";
header("Access-Control-Allow-Origin: $dominioPermitido");
header("Access-Control-Allow-Headers: content-type");
header("Access-Control-Allow-Methods: OPTIONS,GET,PUT,POST,DELETE");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment