Try adding this in your
.htaccess file located at the root directory of your site.
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
For more information you may refer to the link below
Hope that helps