Skip to content

Automatic OPTIONS responses were removed #284

Closed
@williamkapke

Description

@williamkapke

A recent checkin (d1366f2) stopped Restify's auto handling of OPTIONS requests. We now have the ability to create them manually.

Although more control is good, manually adding OPTIONS for every endpoint is cumbersome and (if your application relies on CORS requests) can make it hard to move to Restify v2.

I propose that the auto generated OPTIONS responses are "on by default" and developers can override the default by specifying server.opts(...). It would probably also be good to have a way to globally disable them.

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