mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
allow controlling cors from config and add cors middleware to traefik
This commit is contained in:
parent
36b36c2471
commit
bae9571461
8 changed files with 98 additions and 43 deletions
|
@ -38,7 +38,13 @@ const environmentSchema = z.object({
|
|||
secure_cookies: z.boolean(),
|
||||
session_cookie_name: z.string(),
|
||||
resource_session_cookie_name: z.string(),
|
||||
resource_access_token_param: z.string()
|
||||
resource_access_token_param: z.string(),
|
||||
cors: z.object({
|
||||
origins: z.array(z.string()).optional(),
|
||||
methods: z.array(z.string()).optional(),
|
||||
allowed_headers: z.array(z.string()).optional(),
|
||||
credentials: z.boolean().optional(),
|
||||
}).optional()
|
||||
}),
|
||||
traefik: z.object({
|
||||
http_entrypoint: z.string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue