mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Updated --cors documentation, refs #1467
This commit is contained in:
parent
8584993529
commit
81bf9a9f3c
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
edit the URL and add a ``.json`` extension to it.
|
||||||
|
|
||||||
If you started Datasette with the ``--cors`` option, each JSON endpoint will be
|
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-Origin: *
|
||||||
|
Access-Control-Allow-Headers: Authorization
|
||||||
|
|
||||||
This means JavaScript running on any domain will be able to make cross-origin
|
This means JavaScript running on any domain will be able to make cross-origin
|
||||||
requests to fetch the data.
|
requests to fetch the data.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue