Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 19, 2020 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/b3693217a4ebc8f6c36139cb8e4d7f7b to your computer and use it in GitHub Desktop.
Save parzibyte/b3693217a4ebc8f6c36139cb8e4d7f7b to your computer and use it in GitHub Desktop.
<?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