No 'Access-Control-Allow-Origin' header is present on the requested resource

Hi guys!

Relatively new to gitea, but I’ve tried all methods I could find relevant on Google but to no avail.

So I have a react project that is trying to read data from a json file that is hosted on gitea using axios.

Here’s the error messages returned:

I have tried changing the .ini file for gitea, changing my apache settings etc.

Would appreciate if someone could enlighten me on this!

Thank you!