Skip to content

Cors? #8

Description

@JuanCaicedo

Hi there! I'm trying to use fs-router but am having problems with needing to set up an OPTIONS route. Some more details.

I've used fs-router to set up a POST route at /sync. I've used micro-cors to set up cors. However when I send a request from my client, I see a 404 at OPTIONS /sync. This is because the browser sends an OPTIONS preflight request to the server first.

I think the solution would be to set up an OPTIONS handler as well, but I'm not sure what to do there. Have you ever encountered this problem, or do you have any other suggestions for doing cors with fs-router?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions