Skip to content

Commit

Permalink
Updated --cors documentation, refs #1467
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 14, 2021
1 parent 8584993 commit 81bf9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/json_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ To access the API for a page, either click on the ``.json`` link on that page or
edit the URL and add a ``.json`` extension to it.

If you started Datasette with the ``--cors`` option, each JSON endpoint will be
served with the following additional HTTP header::
served with the following additional HTTP headers::

Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Authorization

This means JavaScript running on any domain will be able to make cross-origin
requests to fetch the data.
Expand Down

0 comments on commit 81bf9a9

Please sign in to comment.