mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Merge e59458222d into da675cd56c
This commit is contained in:
commit
e9bb8bd27a
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ express().use(express.static(build_path, {
|
|||
setHeaders: (res, path) => {
|
||||
if (path === index_path) res.set('cache-control', `public, max-age: ${INDEX_CACHE}`);
|
||||
else res.set('cache-control', `public, max-age: ${ASSETS_CACHE}`);
|
||||
|
||||
// allow using a streaming server URL that uses http, like for when hosting a streaming server on a local network
|
||||
res.set('Content-Security-Policy', 'upgrade-insecure-requests');
|
||||
}
|
||||
})).all('*', (_req, res) => {
|
||||
// TODO: better 404 page
|
||||
|
|
|
|||
Loading…
Reference in a new issue