Skip to content

Commit cd7be1f

Browse files
authored
update cors exporting (#113)
1 parent ba5f0ce commit cd7be1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ const handler = protectedResourceHandler({
324324
authServerUrls: ["https://auth-server.com"],
325325
});
326326

327-
export { handler as GET, metadataCorsOptionsRequestHandler as OPTIONS };
327+
const corsHandler = metadataCorsOptionsRequestHandler()
328+
329+
export { handler as GET, corsHandler as OPTIONS };
328330
```
329331

330332
This endpoint provides:

0 commit comments

Comments
 (0)