How do i enable cross-origin resource sharing?

i’m trying to consume the REST API from another server (outside of xibo localhost),
API calls work fine from postman (same port) but when i do it with google chrome (different port) using jquery i get error (xibo server allows only GET, HEAD, OPTIONS )

I tried changing the apache conf files (sites-enabled ) in order to allow cross origin requests by adding the following line but i get the same error

Anyone having the same problem ?