Search
Feedback
Setup for Free
EC
Effect Community
•
5mo ago
•
12 replies
Patrick Roza
Adding CORS Middleware to Specific Route Instead of Globally
Layer.provide(HttpLayerRouter.cors()) // provide CORS middleware
Layer.provide(HttpLayerRouter.cors()) // provide CORS middleware
cors is a global middleware
, can you add it as a non global
, only to the rpc route
?
Effect Community
Join
Production-grade applications in TypeScript.
5,916
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
Adding Logger Middleware to RPC Server with CORS
EC
Effect Community / effect-beginners-🚀
5mo ago
Bypassing Middleware for a Specific Route in HttpApiGroup
EC
Effect Community / platform
3mo ago
Adding CORS Configuration to HTTP Server
EC
Effect Community / effect-beginners-🚀
15mo ago
Adding Route Prefix to HttpApi Routes
EC
Effect Community / platform
15mo ago