Effect CommunityEC
Effect Community3y ago
7 replies
bste

Defining OPTIONS Calls for Endpoints in platform-node/HttpServer

Hey all. I'm trying out building a simple API with platform-node/HttpServer. I'm coming from stuff like express or fastify. I was wondering for things like OPTIONS calls that a frontend would make; do I have to define a Http.router.options(<path>, <handler>) for each endpoint myself? I was getting a 404 when my front end did the preflight checks.
Was this page helpful?