Plugin Directory

Changeset 1685219


Ignore:
Timestamp:
06/25/2017 09:15:05 PM (9 years ago)
Author:
snarfed
Message:

docs: another .htaccess line to work around stripping HTTP Authorization header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • micropub/trunk/readme.txt

    r1685193 r1685219  
    7171If your Micropub client includes an `Authorization` HTTP request header but you still get an HTTP 401 response with body `missing access token`, your server may be stripping the `Authorization` header. If you're on Apache, [try adding this line to your `.htaccess` file](https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299202820):
    7272
    73 ```
    74 SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    75 ```
     73    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    7674
    77 If that doesn't work, you may need to ask your hosting provider to whitelist the `Authorization` header for your account. If they refuse, you can [pass it through Apache with an alternate name](https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299569822), but [you'll need to edit this plugin's code to read from that alternate name](https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299569822).
     75If that doesn't work, try this line:
     76
     77    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     78
     79If that doesn't work either, you may need to ask your hosting provider to whitelist the `Authorization` header for your account. If they refuse, you can [pass it through Apache with an alternate name](https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299569822), but [you'll need to edit this plugin's code to read from that alternate name](https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299569822).
    7880
    7981== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.