If you get TokenExpired message right after logging in to your App, please access to your WordPress folder -> Opening .htaccess -> Put
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
within
<IfModule mod_rewrite.c>
EG:
SetEnvIf Request_URI ".*" AllowCountry # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 </IfModule> # END WordPress SetEnvIf Request_URI ".*" AllowRestApi
or Put the following code to .httaccess
<IfModule mod_setenvif.c> <IfModule mod_headers.c> <FilesMatch "\.(cur|gif|png|jpe?g|svgz?|ico|webp)$"> SetEnvIf Origin ":" IS_CORS Header set Access-Control-Allow-Origin "*" env=IS_CORS SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 </FilesMatch> </IfModule> </IfModule>
If you still face this issue, Please contact your hosting provider to report this issue.
Please follow and like us: