For my application I need to restrict access to WordPress Media files. Because I can't modify the headers for each request, a Cookie with the token would be very useful.
With this implementation a Cookie JWT_TOKEN can be set which should contain "Bearer TOKEN". If this cookie is present, the token is used for validation.
For my application I need to restrict access to WordPress Media files. Because I can't modify the headers for each request, a Cookie with the token would be very useful.
With this implementation a Cookie JWT_TOKEN can be set which should contain "Bearer TOKEN". If this cookie is present, the token is used for validation.