Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
ce8e0bb1
Commit
ce8e0bb1
authored
Dec 29, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] some csp and sentry filters improvements
parent
942b5404
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
config.ts
lib/sentry/config.ts
+4
-1
ad.ts
nextjs/csp/policies/ad.ts
+3
-3
app.ts
nextjs/csp/policies/app.ts
+1
-1
No files found.
lib/sentry/config.ts
View file @
ce8e0bb1
...
...
@@ -56,6 +56,7 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
'
Script error.
'
,
// Relay and WalletConnect errors
'
The quota has been exceeded
'
,
'
Attempt to connect to relay via
'
,
'
WebSocket connection failed for URL: wss://relay.walletconnect.com
'
,
],
...
...
@@ -67,9 +68,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
// Woopra flakiness
/eatdifferent
\.
com
\.
woopra-ns
\.
com/i
,
/static
\.
woopra
\.
com
\/
js
\/
woopra
\.
js/i
,
// Chrome extensions
// Chrome
and other
extensions
/extensions
\/
/i
,
/^chrome:
\/\/
/i
,
/^chrome-extension:
\/\/
/i
,
/^moz-extension:
\/\/
/i
,
// Other plugins
/127
\.
0
\.
0
\.
1:4001
\/
isrunning/i
,
// Cacaoweb
/webappstoolbarba
\.
texthelp
\.
com
\/
/i
,
...
...
nextjs/csp/policies/ad.ts
View file @
ce8e0bb1
...
...
@@ -9,11 +9,11 @@ export function ad(): CspDev.DirectiveDescriptor {
'
connect-src
'
:
[
'
coinzilla.com
'
,
'
*.coinzilla.com
'
,
'
request-global.czilladx.com
'
,
'
https://
request-global.czilladx.com
'
,
'
*.slise.xyz
'
,
],
'
frame-src
'
:
[
'
request-global.czilladx.com
'
,
'
https://
request-global.czilladx.com
'
,
],
'
script-src
'
:
[
'
coinzillatag.com
'
,
...
...
@@ -27,7 +27,7 @@ export function ad(): CspDev.DirectiveDescriptor {
'
cdn
.
coinzilla
.
io
'
,
],
'
font
-
src
'
: [
'
request
-
global
.
czilladx
.
com
'
,
'
https
:
//
request-global.czilladx.com',
],
};
}
nextjs/csp/policies/app.ts
View file @
ce8e0bb1
...
...
@@ -9,7 +9,6 @@ import { KEY_WORDS } from '../utils';
const
MAIN_DOMAINS
=
[
`*.
${
config
.
app
.
host
}
`
,
config
.
app
.
host
,
getFeaturePayload
(
config
.
features
.
sol2uml
)?.
api
.
endpoint
,
].
filter
(
Boolean
);
const
getCspReportUrl
=
()
=>
{
...
...
@@ -113,6 +112,7 @@ export function app(): CspDev.DirectiveDescriptor {
'
font-src
'
:
[
KEY_WORDS
.
DATA
,
...
MAIN_DOMAINS
,
],
'
object-src
'
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment