fix(backend): Add localhost origins for Capacitor CORS
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:14:35 -08:00
parent 0723c93908
commit c74f37783f

View file

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