JWT Authentication
JWT Authentication
While using our plugin you need to make sure that your hosting service enabled the Authorization header because we are using JWT for authentication that needs an authorization header, if your hosting server disabled the Authorization header then you need to enable it in the .htaccess file for example.
Just copy the below code and paste it into the .htaccess file location on the WordPress root
Throughout this plugin, we have used WordPress REST API to Add/Edit the data. So for security tokens in the REST API, we have used JWT Authorization
Most of the shared hosting has disabled the HTTP Authorization headers by default To enable this option you’ll need to edit your .htaccess file adding the following
RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
WPENGINE
To enable the header option you’ll need to edit your .htaccess file adding the following
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1