Fix viewer API routing under Content-Security-Policy.
Pass the viewer id via a body data attribute instead of a blocked inline script so personal links still load saved data after restart. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,10 +7,9 @@
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<script src="/static/vendor/chart.umd.min.js" defer></script>
|
||||
<script src="/static/i18n.js" defer></script>
|
||||
<script>window.VIEWER_ID = {{ viewer_id|tojson }};</script>
|
||||
<script src="/static/app.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<body data-viewer-id="{{ viewer_id }}">
|
||||
<div class="layout">
|
||||
<aside class="sidebar">
|
||||
<div class="brand">
|
||||
|
||||
Reference in New Issue
Block a user