Problems with cliend side HTTP request using third party module


I have created a React module for sending stickers in a chat application. My component uses a REST API for managing stickers and to process the HTTP requests. Everything works fine in my example project but when I want to add it to my Meteor app I get the following errors:

I have also tried adding the component to another, non meteor, project and everything works fine.

You can find my module here

Any suggestions on how to proceed are welcome!

I’m guessing Meteor sets some setting for the XMLHttpRequest causing the ‘Access-Control-Allow-Origin’ errors mentioned above.