Skip to content

Conversation

@stemey
Copy link
Collaborator

@stemey stemey commented Aug 11, 2025

No description provided.

if (!corsEnabledMethodsByRoute.has(route.publicPath)) {
corsEnabledMethodsByRoute.set(route.publicPath, [route.httpMethod]);
} else {
corsEnabledMethodsByRoute.set(route.publicPath, [route.httpMethod]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both cases are doing the same

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

});
},
};
function routeOptionsRequestsForCors(routes: readonly Route[], app: Express) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing test

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@clebert clebert merged commit 3b9fc46 into master Aug 14, 2025
2 checks passed
@clebert clebert deleted the Local-Cors branch August 14, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants