Ā© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Adding CORS Middleware to Specific Route Instead of Globally - Effect Community
EC
Effect Community
ā¢
8mo 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.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Bypassing Middleware for a Specific Route in HttpApiGroup
EC
Effect Community / platform
6mo ago
Adding Route Prefix to HttpApi Routes
EC
Effect Community / platform
2y ago
Suppressing Trace Middleware for Specific Endpoint
EC
Effect Community / platform
3y ago
Issue with CORS Middleware in New LayerRouter Setup
EC
Effect Community / platform
9mo ago