Add files via upload

CSP策略
This commit is contained in:
1600822305 2025-04-09 18:50:43 +08:00 committed by GitHub
parent c33d14feb5
commit 7bd8d1b1a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,42 +1,43 @@
<!doctype html> <!doctype html>
<html lang="zh-CN"> <html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; connect-src blob: *; script-src 'self' 'unsafe-eval' *; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' *; font-src 'self' data: *; img-src 'self' data: file: * blob:; frame-src * file:" />
<title>Cherry Studio</title>
<style> <head>
html, <meta charset="UTF-8" />
body { <meta name="viewport" content="initial-scale=1, width=device-width" />
margin: 0; <meta http-equiv="Content-Security-Policy"
} content="default-src 'self'; connect-src blob: *; script-src 'self' 'unsafe-eval' *; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' *; font-src 'self' data: *; img-src 'self' data: file: * blob:; media-src blob: *; frame-src * file:" />
<title>Cherry Studio</title>
#spinner { <style>
position: fixed; html,
width: 100vw; body {
height: 100vh; margin: 0;
flex-direction: row; }
justify-content: center;
align-items: center;
display: none;
}
#spinner img { #spinner {
width: 100px; position: fixed;
border-radius: 50px; width: 100vw;
} height: 100vh;
</style> flex-direction: row;
</head> justify-content: center;
align-items: center;
display: none;
}
<body> #spinner img {
<div id="root"></div> width: 100px;
<div id="spinner"> border-radius: 50px;
<img src="/src/assets/images/logo.png" /> }
</div> </style>
<script type="module" src="/src/init.ts"></script> </head>
<script type="module" src="/src/main.tsx"></script>
</body> <body>
</html> <div id="root"></div>
<div id="spinner">
<img src="/src/assets/images/logo.png" />
</div>
<script type="module" src="/src/init.ts"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>