Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
558 stars 161 forks source link

Cookie-Support for wp-content URIs #124

Closed max-simon closed 5 years ago

max-simon commented 6 years ago

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.