How to allow Cross domain request?

I am trying to access the api from javascript and i was wondering if it’s possible to allow cross domain request in Omekas, instead doing it from apache.

thanks!