Skip to content

Commit

Permalink
🐛 Fix: csp-xss 오류 report only 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Nov 17, 2024
1 parent cddf14d commit 27902ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions lighthouserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
},
assert: {
preset: 'lighthouse:recommended',
assertions: {
'csp-xss': ['warn', {}],
},
},
},
}
8 changes: 0 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ function App() {
<ThemeProvider theme={theme}>
<Helmet>
<title>DDang</title>
<meta
httpEquiv='Content-Security-Policy'
//todo 백엔드 url 추가
//* 참고 https://w01fgang.tistory.com/147
content={`
default-src 'self';
`}
/>
</Helmet>
<button onClick={toggleTheme} hidden>
Toggle Theme
Expand Down

0 comments on commit 27902ef

Please sign in to comment.