- fix lint issue
- fix Apply Cors exception handler (do not work when logged out)
This commit is contained in:
martmull
2024-05-16 15:29:27 +02:00
committed by GitHub
parent fdf10f17e2
commit afad993bb3
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,10 @@ export class ApplyCorsToExceptions implements ExceptionFilter {
const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
if (!response.header) {
return;
}
response.header('Access-Control-Allow-Origin', '*');
response.header(
'Access-Control-Allow-Methods',