fix(backend): Add localhost origins for Capacitor CORS
This commit is contained in:
parent
0723c93908
commit
c74f37783f
1 changed files with 1 additions and 1 deletions
|
|
@ -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'],
|
origin: ['https://veridian.runfoo.run', 'http://localhost:5173', 'https://localhost', 'capacitor://localhost'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']
|
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue