We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using your plugin with my ionic app
When I use the /jwt-auth/v1/token/validate , I got a cors problem However, /jwt-auth/v1/token/ seems to work well
I already put this on my htaccess :
RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
and enable cors in my wp-config :
define('JWT_AUTH_CORS_ENABLE', true);
What I need to check ?
The text was updated successfully, but these errors were encountered:
Had the same issue. For me the problem was with setting up headers.
So instead of this:
const response = await fetch(`${wpRestApi}/jwt-auth/v1/token/validate`, { headers: { 'Authorization': `Bearer ${token}`, }, method: "POST", });
Did this:
const headers = new Headers({ 'Authorization': `Bearer ${token}`, }); const response = await fetch(`${wpRestApi}/jwt-auth/v1/token/validate`, { headers, method: "POST", });
Sorry, something went wrong.
No branches or pull requests
I'm using your plugin with my ionic app
When I use the /jwt-auth/v1/token/validate , I got a cors problem
However, /jwt-auth/v1/token/ seems to work well
I already put this on my htaccess :
and enable cors in my wp-config :
What I need to check ?
The text was updated successfully, but these errors were encountered: