Skip to content

Successful OPTIONS requests are aborted #166

@Setheck

Description

@Setheck

I'm not sure why but this library aborts successful options requests ->

cors/config.go

Line 92 in 90bd363

defer c.AbortWithStatus(cors.optionsResponseStatusCode)

According to GIN godoc abort prevents handlers from running. this seems like an error to me.

This means that when using the lib, middleware on OPTIONS requests following this can never work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions