Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

CORS Preflight check failing #2

Open
yves-pkstd opened this issue Feb 27, 2017 · 0 comments
Open

CORS Preflight check failing #2

yves-pkstd opened this issue Feb 27, 2017 · 0 comments

Comments

@yves-pkstd
Copy link

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant