From 01441961c375232aea3829e6b561c44161de9768 Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Tue, 8 Oct 2024 14:18:44 -0400 Subject: [PATCH] doc(cors): update name of bypass flag --- api/src/unraid-api/app/cors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/unraid-api/app/cors.ts b/api/src/unraid-api/app/cors.ts index d724f7a57..340c401e7 100644 --- a/api/src/unraid-api/app/cors.ts +++ b/api/src/unraid-api/app/cors.ts @@ -9,7 +9,7 @@ import { type CookieService } from '../auth/cookie.service'; * Returns whether the origin is allowed to access the API. * * @throws GraphQLError if the origin is not in the list of allowed origins - * and `BYPASS_PERMISSION_CHECKS` flag is not set. + * and `BYPASS_CORS_CHECKS` flag is not set. */ // note: don't make this function synchronous. throwing will then crash the server. export async function isOriginAllowed(origin: string | undefined) {