Browse files

Merge pull request #137 from davidpodhola/patch-1

CORS and Content-Type suggestion
  • Loading branch information...
EricSimons committed Sep 27, 2017
2 parents e86c7be + 652fb57 commit 3b68f57637561c014e69733eb86ba4972a5834ff
Showing with 4 additions and 0 deletions.
  1. +4 −0 api/
@@ -1,11 +1,15 @@
# RealWorld API Spec
If the backend is about to run on a different host/port than the frontend, make sure to handle `OPTIONS` too and return correct `Access-Control-Allow-Origin` and `Access-Control-Allow-Headers` (e.g. `Content-Type`).
### Authentication Header:
`Authorization: Token`
## JSON Objects returned by API:
Make sure the right content type like `Content-Type: application/json; charset=utf-8` is correctly returned.
### Users (for authentication)

0 comments on commit 3b68f57

Please sign in to comment.