0👍
You need a file .htaccess (root of your index.html) with this inside :
RewriteEngine On
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
read carefully for the Access-Control-Allow-Origin
ref. https://httpd.apache.org/docs/2.4/howto/htaccess.html
Source:stackexchange.com