Skip to content

Commit

Permalink
🐛 Fix: CSP index.html에 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Nov 17, 2024
1 parent 6a2b8a7 commit fa1f631
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
http-equiv="Content-Security-Policy"
content="
default-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
font-src 'self' data:;
connect-src 'self' https:;
base-uri 'self';
form-action 'self';
object-src 'none';
frame-ancestors 'none';
"
/>
<title>DDang | 반려견 산책 서비스</title>
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" sizes="180x180" />
Expand Down
14 changes: 0 additions & 14 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ function App() {
<ThemeProvider theme={theme}>
<Helmet>
<title>DDang</title>
<meta
httpEquiv='Content-Security-Policy'
content={`
default-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
font-src 'self' data:;
connect-src 'self' https:;
frame-src 'self';
base-uri 'self';
form-action 'self';
`}
/>
</Helmet>
<button onClick={toggleTheme} hidden>
Toggle Theme
Expand Down

0 comments on commit fa1f631

Please sign in to comment.