mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
Additional granular permissions related to instance-level access. - CORS settings - Reading logs (both instance logs and login history) --------- Co-authored-by: Gastón Fournier <gaston@getunleash.io>
21 lines
604 B
TypeScript
21 lines
604 B
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const setCorsSchema = {
|
|
$id: '#/components/schemas/setCorsSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
description: 'Unleash CORS configuration.',
|
|
properties: {
|
|
frontendApiOrigins: {
|
|
description:
|
|
'The list of origins that the front-end API should accept requests from.',
|
|
example: ['*'],
|
|
type: 'array',
|
|
items: { type: 'string' },
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type SetCorsSchema = FromSchema<typeof setCorsSchema>;
|