Skip to content

Commit 9a781ba

Browse files
fix pipeline
1 parent 9fed56b commit 9a781ba

5 files changed

Lines changed: 19 additions & 3 deletions

File tree

public/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Disables sensitive functions by default
3030
Header set Permissions-Policy "geolocation=(), microphone=(), camera=(), payment=(), usb=(), magnetometer=()"
3131

32-
# ONLY allow scripts from your own site AND YouTube
32+
# ONLY allow scripts from your own site, YouTube AND dicebear
3333
# Note : If you are using Google fonts or external APIs, you will need to add them here.
34-
Header set Content-Security-Policy "default-src 'self'; script-src 'self' https://www.youtube.com https://s.ytimg.com; style-src 'self' 'unsafe-inline'; img-src 'self' https://i.ytimg.com; connect-src 'self' https://api.votre-domaine.com; frame-src 'self' https://www.youtube.com https://www.youtube-nocookie.com; object-src 'none'; base-uri 'self';"
34+
Header set Content-Security-Policy "default-src 'self'; script-src 'self' https://www.youtube.com https://s.ytimg.com; style-src 'self' 'unsafe-inline'; img-src 'self' https://i.ytimg.com https://api.dicebear.com; connect-src 'self' https://api.votre-domaine.com; frame-src 'self' https://www.youtube.com https://www.youtube-nocookie.com; object-src 'none'; base-uri 'self';"
3535
</IfModule>

src/app/shared/error-handler/error-views/server-error/server-error.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@
239239
width: max-content;
240240
max-width: 200px;
241241
padding: 8px 12px;
242-
width: max-content;
243242
border-radius: 8px 8px 8px 16px;
244243

245244
&::after {

src/app/shared/error-handler/error-views/server-error/server-error.component.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ describe('ServerErrorComponent', () => {
2121

2222
beforeEach(async() => {
2323

24+
const link = document.createElement('link');
25+
link.rel = 'preconnect';
26+
link.href = 'https://api.dicebear.com';
27+
document.head.appendChild(link);
28+
2429
mockAudio = {
2530
play: vi.fn().mockReturnValue(Promise.resolve()),
2631
load: vi.fn(),

src/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
rel="icon"
1212
type="image/x-icon"
1313
href="favicon.ico" />
14+
<link
15+
rel="preconnect"
16+
href="https://api.dicebear.com" />
1417
</head>
1518
<body>
1619
<app-root></app-root>

vitest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,14 @@ export default defineConfig({
5959
],
6060
clean: true
6161
},
62+
onConsoleLog(log: string): false | void {
63+
if (log.includes('NG02956') || log.includes('NgOptimizedImage')) {
64+
return false;
65+
}
66+
67+
if (log.includes('HTMLMediaElement\'s load() method')) {
68+
return false;
69+
}
70+
}
6271
}
6372
});

0 commit comments

Comments
 (0)