Skip to content

Commit d1175da

Browse files
authored
Update README.md
Added Solution for Apache users
1 parent 5323d09 commit d1175da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ add_filter( 'graphql_jwt_auth_secret_key', function() {
3333
});
3434
```
3535

36+
If you are using Apache to run Wordpress you should add this to your .htaccess in order to enable Authorization header in your project
37+
38+
```
39+
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
40+
```
41+
3642
This secret is used in the encoding and decoding of the JWT token. If the Secret were ever changed on the server, ALL tokens that were generated with the previous Secret would become invalid. So, if you wanted to invalidate all user tokens, you can change the Secret on the server and _all_ previously issued tokens would become invalid and require users to re-authenticate.
3743

3844
- Learn more about JWT: https://jwt.io/introduction/

0 commit comments

Comments
 (0)