Whitelist not working for endpoints
-
The new Events Calendar view by Modern Tribe uses the endpoint
/wp-json/tribe/views/v2/html
I’ve set it so all endpoints require auth from the wordpress guide
Adding a filter to my theme, under Filters.php (gets autoloaded in)
public static function WhitelistJWT() { add_filter( 'jwt_auth_whitelist', function ( $endpoints ) { return array( '/wp-json/tribe/views/v2/html' ); }, 10, 2 ); }
Gives a 401 error invalid_username.
I also added that filter directly in functions.php, still doesn’t work and created a plugin, but none of these work.
How can I get whitelist working?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Whitelist not working for endpoints’ is closed to new replies.