Header set Access-Control-Allow-Origin "*"
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Send all requests to the index.html unless
    # it's a directory or a file that actually exists
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.html [L]
</IfModule>