Skip to content

Instantly share code, notes, and snippets.

@mahmoodchowdhury
Created May 9, 2026 01:58
Show Gist options
  • Select an option

  • Save mahmoodchowdhury/b34c5395ab7ab4501afa549470a1e671 to your computer and use it in GitHub Desktop.

Select an option

Save mahmoodchowdhury/b34c5395ab7ab4501afa549470a1e671 to your computer and use it in GitHub Desktop.
Apache CORS headers
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "https://your-react-frontend.com"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
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