fix(backend): Enable permissive CORS to resolve WebView issues
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2026-01-06 23:45:44 -08:00
parent 5482676f06
commit ed7b78be32

View file

@ -35,7 +35,7 @@ const server = fastify({
// Register Plugins // Register Plugins
server.register(cors, { server.register(cors, {
origin: ['https://veridian.runfoo.run', 'http://localhost:5173', 'https://localhost', 'capacitor://localhost'], origin: true, // Allow all origins to resolve specific Capacitor/WebView mismatches
credentials: true, credentials: true,
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'] methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']
}); });