Whitelisting is not working
-
I’ tired of try to add my endpoints to the the white list.
I read the documentation and similar problems in the forum but it continue, my code:1- I’m using one plugin (Code Snippets) to add the filter, this is my code:
add_action( ‘plugins_loaded’, ‘my_plugin_override’ );
function my_plugin_override() {
// add white list endpoints
add_filter( ‘jwt_auth_whitelist’, function ( $endpoints ) {
return array(
‘/wp-json/acf/v3/users’,
‘/wp-json/acf/v3/’,
);
}
);}
2- This is my response in Postman
{
“success”: false,
“statusCode”: 403,
“code”: “jwt_auth_no_auth_header”,
“message”: “Header f?r autentisering hittades inte.”,
“data”: []
}Thanks for help!
- The topic ‘Whitelisting is not working’ is closed to new replies.