Skip to content

Instantly share code, notes, and snippets.

@AlbinSoft
Created November 5, 2024 11:03
Show Gist options
  • Save AlbinSoft/e27c05d5f90e8ee7c085f5c2c39470f4 to your computer and use it in GitHub Desktop.
Save AlbinSoft/e27c05d5f90e8ee7c085f5c2c39470f4 to your computer and use it in GitHub Desktop.
Enable CORS in .htaccess
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment