Skip to content

CORS Preflight check failing #2

@yves-pkstd

Description

@yves-pkstd

Currently API post requests are failing.

When sending requests of application/json content type , the browser will first do a CORS preflight check and send an OPTION request. Because in the source code currently only POST cappucino routes are set, the OPTION requests are returning 405 errors.

This can be fixed in two ways:

  • define cappucino OPTION routes
  • don't send the post requests in application/json content type (maybe an axion library setting)

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