fix(qa): resolve remaining console errors & network errors on main routes (TEC-3079)
- fix(web): add ws:// to CSP connect-src for Socket.IO WebSocket connections - fix(web): guard priceChangePct?.d7 / priceChangePct?.d30 against null in KpiStrip - fix(api): add web-vitals POST to CSRF exclusion in both app.module and shared.module - fix(api): use controller-relative path (web-vitals) not prefixed path for NestJS .exclude() Result: 0 console errors, 0 network 4xx/5xx on /, /login, /register, /search Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -72,6 +72,8 @@ export class SharedModule implements NestModule {
|
||||
{ path: 'auth/refresh', method: RequestMethod.POST },
|
||||
{ path: 'auth/exchange-token', method: RequestMethod.POST },
|
||||
{ path: 'auth/logout', method: RequestMethod.POST },
|
||||
{ path: 'api/v1/web-vitals', method: RequestMethod.POST }, // sendBeacon cannot send CSRF headers
|
||||
{ path: 'web-vitals', method: RequestMethod.POST }, // middleware exclude uses controller-relative path
|
||||
)
|
||||
.forRoutes('*');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user