Skip to content

fix: onRequest not firing #1313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2025
Merged

fix: onRequest not firing #1313

merged 1 commit into from
Jul 30, 2025

Conversation

rkaw92
Copy link
Contributor

@rkaw92 rkaw92 commented Jul 29, 2025

This fixes an issue where onRequest handlers would not fire, breaking plugins such as @elysiajs/cors.

I believe this was caused by not including createOnRequestHandler() in the compose phase, even if some request handlers should be registered.

Fixes #1308

@SaltyAom SaltyAom merged commit a5f7f6b into elysiajs:main Jul 30, 2025
@SaltyAom SaltyAom self-requested a review July 31, 2025 00:03
@Albertbol
Copy link

No tests?

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.

CORS origin is broken in v1.3.6
3 participants