nawarcr7
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Missing field “publisher” & Missing field “logo”Thank you dears @milindmore22 @arnaudbroes
I’ll try and feed you back.Hi @contactjavas, I have joined Discord.
Thank you @contactjavas for your quick response,
I’m sorry, but still not working! as below:{
success: false,
statusCode: 403,
code: “jwt_auth_no_auth_header”,
message: “Authorization header not found.”,
data: [ ],
}Just for being noticed, if I use var_dump() with this $whitelists array in my filter, it is rendered successfully but it didn’t affect any of my routes.
Hi Mr. @contactjavas ,
I still have the same problem not solved,
I tried to put the following code:
add_filter(
‘jwt_auth_whitelist’,
function ($endpoints) {
return array(
‘/wp-json/oembed/1.0/*’,
‘/wp-json/wp/v2/*’,
‘/wp-json/post-views-counter/*’,
‘/wp-json/yoast/v1/*’,
‘/wp-json/yoast/v1/myyoast/*’,
‘/wp-json/wc/blocks/*’,
‘/wp-json/wc/store/*’,
‘/wp-json/wc/v1/*’,
‘/wp-json/wc/v2/*’,
‘/wp-json/wc/v3/*’,
‘/wp-json/wccom-site/v1/*’,
‘/wp-json/wc-analytics/*’,
‘/wp-json/wc-admin/*’,
);
}
);
as you said once in my function.php and then in my plugin __constructor before rest_api_init action and in add_action(‘plugins_loaded’) and all of them didn’t work.
Please help me if you could.
Thanks!- This reply was modified 3 years, 11 months ago by nawarcr7.