Skip to content

Commit e33c351

Browse files
committed
Add better cors explanation on tutorial 01. Close issue #34
1 parent fc03c62 commit e33c351

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/tutorial/tutorial_01.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ certain API, releasing the tokens and so on...
88

99
Start your app
1010
--------------
11-
During this tutorial you will make an XHR POST using `CORS <http://en.wikipedia.org/wiki/Cross-origin_resource_sharing>`_
12-
mechanism from an Heroku deployed app to your localhost instance. To achieve this operation you need a properly
13-
configured Django server and `django-cors-headers` app will help you with this.
11+
During this tutorial you will make and XHR POST from an Heroku deployed app to your localhost instance.
12+
To achieve this operation you need a properly configured Django server with `django-cors-headers` app installed, since
13+
the domain that originated the request (the app on Heroku) is different from the destination domain (your local instance).
14+
Such "cross-domain" requests are by default forbidden by web browsers unless you use CORS.
15+
You can read more about `CORS here <http://en.wikipedia.org/wiki/Cross-origin_resource_sharing>`_.
1416

1517
Create a virtualenv and install `django-oauth-toolkit` and `django-cors-headers`:
1618

0 commit comments

Comments
 (0)