Skip to content

Get request is returning 200 even when origin not allowed #27

Closed

Description

@ryanlelek

Works:
app.get('/some-path', cors(options));

Does not work:
app.get('/some-path', cors(options), my_responder);
app.get('/some-path', [ cors(options), my_responder]);

Code with tests:
https://github.com/ryanlelek/node_cors_issue

Any ideas?

Ryan

Activity

  1. troygoode commented on Jul 21, 2014

    @troygoode
    Member

    In cors-land the server itself isn't what rejects the request, the browser does.

  2. ryanlelek commented on Jan 11, 2016

    @ryanlelek
    Author

    Bowser aside...I can't figure this out.
    Why would adding another middleware after the cors middleware affect the results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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