سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 20:45 UTC
test(pages): correctly handle mocked cross-origin GoTrue health preflight
davoodmehraban89 committed
Oct 12, 2026 at 20:34 UTC
13074d52efd7552927b98da04f7b053664d13607
1 file changed
+1
-1
scripts/pages-artifact.spec.js
+1
-1
@@ -37,7 +37,7 @@ test('Production CSP login and connectivity actions work while later ERP JS is s
37
await page.route('**/auth/v1/health',route=>route.fulfill({
38
status:200,
39
contentType:'application/json',
40
- headers:{'access-control-allow-origin':'*'},
40
+ headers:{'access-control-allow-origin':'*','access-control-allow-headers':'apikey, authorization, content-type, x-client-info','access-control-allow-methods':'GET, OPTIONS'},
41
body:'{"status":"ok"}'
42
}));
43
// The actual hardened Pages output removes inline onclick attributes.