fix(backend): Enable permissive CORS to resolve WebView issues
This commit is contained in:
parent
5482676f06
commit
ed7b78be32
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ const server = fastify({
|
|||
|
||||
// Register Plugins
|
||||
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,
|
||||
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue