Skip to content

Duo-hosted login API request fails due to preflight OPTIONS method rejected #14

@davemednick

Description

@davemednick

Detailed Description

Using the new Web SDK v4 library, when the request is made to the API for the duo login (generated by the createAuthUrl method), a preflight request is made because of the 302 redirect which gets rejected because the OPTIONS method is not allowed. This results in a CORS error in the browser and the client is unable to secure 2FA auth.

Use Case

If the Duo team were able to allow the OPTIONS method for that call or somehow eliminate the need for the preflight check, this version of the client would work for our application.

Workarounds

There is currently no workaround that we can determine because the browser itself fails.

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