Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7046d8f commit afccb8bCopy full SHA for afccb8b
web-app/src/index.tsx
@@ -2,5 +2,6 @@ import * as React from 'react'
2
import ReactDOM from 'react-dom'
3
import App from './App'
4
import './styles/index.css'
5
+import './services/listeners'
6
7
ReactDOM.render(<App />, document.getElementById('root') as HTMLElement)
web-app/src/services/listeners/index.ts
@@ -0,0 +1,8 @@
1
+import ReactDOM from 'react-dom'
+
+// document listeners
+document.addEventListener('securitypolicyviolation', () => {
+ // TODO: add error handling
+ console.log('Security warning for resource')
8
+})
0 commit comments