Skip to content

Instantly share code, notes, and snippets.

@ChMat
Created May 31, 2017 08:38
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 ChMat/317ff79cb2ebb51fd9aeddc7c19a9e85 to your computer and use it in GitHub Desktop.
Save ChMat/317ff79cb2ebb51fd9aeddc7c19a9e85 to your computer and use it in GitHub Desktop.
Enable passing OAuth2 Authorization header in requests
# Apache blocks the Authorization header by default.
# You should enable the RewriteEngine if this is not done already
RewriteEngine On
# Sets the HTTP_AUTHORIZATION header removed by apache
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment