From afb680e415615d6ced69ed2a9e6f12cc8a593acc Mon Sep 17 00:00:00 2001 From: Allen Zhou <46854522+allenzhou101@users.noreply.github.com> Date: Fri, 10 Oct 2025 14:19:00 -0700 Subject: [PATCH] update cors exporting --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59f55de..2ac5b55 100644 --- a/README.md +++ b/README.md @@ -324,7 +324,9 @@ const handler = protectedResourceHandler({ authServerUrls: ["https://auth-server.com"], }); -export { handler as GET, metadataCorsOptionsRequestHandler as OPTIONS }; +const corsHandler = metadataCorsOptionsRequestHandler() + +export { handler as GET, corsHandler as OPTIONS }; ``` This endpoint provides: