corydolphin / flask-cors

Cross Origin Resource Sharing ( CORS ) support for Flask
https://flask-cors.corydolphin.com/
MIT License
873 stars 140 forks source link

`/api` is missing as URI-prefix within the example code #267

Closed gabechu closed 3 years ago

gabechu commented 4 years ago

In the example you provided, you have

curl --include -X OPTIONS http://127.0.0.1:5000/exception

in which should be http://127.0.0.1:5000/api/exception where /api is missing. This is an easy fix, I can open up a PR for update.

corydolphin commented 4 years ago

Great catch Gabe! If you can open a PR I'd be happy to merge ti!

Cheers, Cory

On Wed, May 20, 2020 at 1:20 AM Gabe Chu notifications@github.com wrote:

In the example https://github.com/corydolphin/flask-cors/blob/5c6e05e996f10be1df1f2ad178560e54a2f82f1b/examples/app_based_example.py#L127 you provided, you have

curl --include -X OPTIONS http://127.0.0.1:5000/exception

in which should be http://127.0.0.1:5000/api/exception where /api is missing. This is an easy fix, I can open up a PR for update.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/corydolphin/flask-cors/issues/267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADNDKK4P7PQEVFIZZYAKK3RSOHGVANCNFSM4NFWV5NQ .

corydolphin commented 3 years ago

Fixed! Thanks