If it’s a security issue, then do the following.
Make sure you set up user account with correct role in the App publishing the OData service:
Then in your client App, you login with the configured user in the OData service. In this sample I created a user called “DataHub” which has the role called also “DataHub” configured.
did you publish your both apps , consumer and publisher apps?