Spaces:
Running
Running
Fix the CSP: allow the runtime blob module (gabrielkpo/alias fix/demo-csp-blob)
Browse files- index.html +3 -2
index.html
CHANGED
|
@@ -4,8 +4,9 @@
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<!-- The page talks to two hosts only: Hugging Face for the model files and jsDelivr for the
|
| 7 |
-
ONNX runtime. The text is never part of a request: nothing could send it anywhere else.
|
| 8 |
-
|
|
|
|
| 9 |
<title>Alias</title>
|
| 10 |
<link rel="stylesheet" href="style.css">
|
| 11 |
<script type="module" src="app.js"></script>
|
|
|
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<!-- The page talks to two hosts only: Hugging Face for the model files and jsDelivr for the
|
| 7 |
+
ONNX runtime. The text is never part of a request: nothing could send it anywhere else.
|
| 8 |
+
blob: in script-src: the runtime imports its WebAssembly glue module from a blob URL. -->
|
| 9 |
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self' blob: https://cdn.jsdelivr.net 'wasm-unsafe-eval'; connect-src https://huggingface.co https://*.huggingface.co https://*.hf.co https://cdn.jsdelivr.net; worker-src 'self' blob: https://cdn.jsdelivr.net; style-src 'self'; img-src 'self' data:; base-uri 'none'; form-action 'none'">
|
| 10 |
<title>Alias</title>
|
| 11 |
<link rel="stylesheet" href="style.css">
|
| 12 |
<script type="module" src="app.js"></script>
|