Thanks a lot for the reply Shekhar.
My issue is that I have done exactly that but I get 401 response code and get unauthorized.
The only difference is that I use getFetchClient in the plugin client side and not request
Maybe the request function is something else. How do you import it in the react side?
I have created my route in Strapi src/api/data and can call it fine with “global api token” and with configuration as posted above.