Skip to content

Commit a018bc0

Browse files
committed
refactor: remove unnecessary Apollo preflight header in app configuration
1 parent 7dc3d06 commit a018bc0

3 files changed

Lines changed: 1 addition & 81 deletions

File tree

PhantomDave.BankTracking.Api/Services/FinanceRecordService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ public async Task<ImportResultType> BulkCreateWithDuplicateCheckAsync(
276276
.Where(candidate => !existingKeys.Contains(candidate.Key))
277277
.Select(candidate => candidate.Record)
278278
.ToList();
279+
279280

280281
var addResult = (await _unitOfWork.FinanceRecords.AddRangeAsync(recordsToAdd)).ToArray();
281282
await _unitOfWork.SaveChangesAsync();

compose.local.yaml

Lines changed: 0 additions & 80 deletions
This file was deleted.

frontend/src/app/app.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const appConfig: ApplicationConfig = {
4646
// See: https://chillicream.com/docs/hotchocolate/v15/server/files#client-usage
4747
headers['GraphQL-Preflight'] = '1';
4848

49-
// Keep Apollo preflight to force a CORS preflight in browsers (harmless on non-multipart)
5049
headers['Apollo-Require-Preflight'] = 'true';
5150

5251
return { headers };

0 commit comments

Comments
 (0)