src/prologue/middlewares/cors

Source   Edit  

Procs

proc CorsMiddleware(allowOrigins: seq[string] = @[];
                    allowOriginRegex: Regex = re"";
                    allowMethods: seq[string] = @["GET"];
                    allowHeaders: seq[string] = @[];
                    exposeHeaders: seq[string] = @[]; allowCredentials = false;
                    maxAge = 7200; excludeEndPoint: seq[string] = @[]): HandlerAsync {.
    ...raises: [], tags: [], forbids: [].}
Source   Edit