Closed tibidibtibo closed 3 years ago
Hi @tibidibtibo , I can't go deeper for now, but this JWT-Auth plugin has nothing to do with JavaScript directly. But if the theme is doing some REST API request to your site via custom endpoint, then you might need to whitelist them. There is a whitelisting section in the doc you can use for now.
Hi @tibidibtibo , I can't go deeper for now, but this JWT-Auth plugin has nothing to do with JavaScript directly. But if the theme is doing some REST API request to your site via custom endpoint, then you might need to whitelist them. There is a whitelisting section in the doc you can use for now.
Thanks !
You're right, the problem was on api internal request.
I was trapped by another request "successful but not" !
code 200 :
but code 403 in data
Adding this endpoint to whitelist fixed it :-)
I have some troubles with 'jwt-auth' on my website using Theme X.
When I try to open the Theme X editor (/x/theme-options), it fails with the followings javascript errors :
In one picture :
Here is the text :
I seems that is a mess in the javascript resources ! I desactivated all others plugins on my website and only 'jwt-auth' is causing this issue.
app.514eb0c.js
is a static file from Cornerstone, a plugin used by Theme X to edit pages. The location is :/www/wp-content/plugins/cornerstone/assets/dist/js
Is anything the plugin trying to minify or uglify ? Is there a dependencies conflict (lodash ? react ?) ? I looked at the plugin's code but I'm not really good in PHP ^^
Any idea ?
Thanks !