https://github.com/cambell-prince/Front … gSimpleAPI

This is API module above that we are using to integrate with with our external React App.

The issue regarding this module is that whenever we try to make an API request to any endpoint provided in this module

i.e: www.baseurl.com/modules/api/category

it always gives an error regarding Allowed Origin not present in headers (CORS) but on the other hand when we are trying the same exact endpoint with Postman it runs as it is supposed to run.

I have gone through the help at slim framework site and found the solution below. But I am not sure where to embed this code in our API module.

https://www.slimframework.com/docs/v3/c … -cors.html


Kindly help us resolve this issue

Thanks for helping and coorperating.