Skip to content

Commit 8b1b01a

Browse files
committed
fix cors
1 parent 61a40ab commit 8b1b01a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/rest/config/rest.constants.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ export const REST_API_TITLE = 'Device REST API';
44
export const REST_API_DESCRIPTION = 'Administrative REST endpoints for device management';
55
export const REST_API_RELEASE = '1.0.0';
66

7-
export const CORS_ALLOWED_ORIGINS = ['*'];
7+
export const CORS_ALLOWED_ORIGINS = [
8+
'https://app.koiosdigital.net',
9+
/^https?:\/\/localhost(:\d+)?$/,
10+
'capacitor://localhost',
11+
];

0 commit comments

Comments
 (0)