To allow the LiSA Player to fetch and use the font files served from your host, you’ll need to have the font‐serving host send the proper CORS header so that the browser actually permits the cross‐origin fetch.
Enable CORS on the font host
Even with CSP allowing the LiSA Player domain, the browser will still refuse the request unless the font server responds with:
So on the font-serving host's web server configuration (Apache, nginx, CDN, etc.), make sure requests for fonts (e.g. `*.woff or *.woff2) return the header.
Deprecation Notice: Support for account-specific player domains will be discontinued soon.
To ensure uninterrupted service, please add both of the following to your allowlist:
https://player.hello-lisa.com
https://{clientId}.loveslisa.tech
Necessary adjustments:
Please ensure to replace {clientId} with your unique client identifier, provided during account setup.
nginx
Define a map at http-scope to turn the incoming $http_origin into itself if it’s allowed, or into an empty string otherwise:
server {
# … your server config …
location ~* \.(?:woff2?|ttf|otf)$ {
# only echo a CORS header if $cors_allow_origin was set
if ($cors_allow_origin != "") {
add_header Access-Control-Allow-Origin $cors_allow_origin;
add_header Access-Control-Allow-Methods "GET, OPTIONS";
add_header Access-Control-Allow-Headers "Origin, Accept, Range";
}
# standard font‐serving directives
expires 1M;
add_header Cache-Control "public";
try_files $uri =404;
}
}
# in your site’s <VirtualHost> or server config
<IfModule mod_setenvif.c>
# capture allowed origins
SetEnvIf Origin "^(https://player\.hello-lisa\.com|https://{clientId}\.loveslisa\.tech)$" CORS_ALLOW_ORIGIN=$0
</IfModule>
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Origin "%{CORS_ALLOW_ORIGIN}e" env=CORS_ALLOW_ORIGIN
Header always set Access-Control-Allow-Methods "GET, OPTIONS" env=CORS_ALLOW_ORIGIN
Header always set Access-Control-Allow-Headers "Origin, Accept, Range" env=CORS_ALLOW_ORIGIN
</IfModule>