Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
protogrid:json_api_authentication [2022-02-22 00:21] – dru | protogrid:json_api_authentication [2024-04-20 19:24] (current) – [Cross-Origin Resource Sharing (CORS)] dru | ||
---|---|---|---|
Line 8: | Line 8: | ||
Note: Both the email address (e.g. " | Note: Both the email address (e.g. " | ||
+ | |||
+ | ===== Cross-Origin Resource Sharing (CORS) ===== | ||
+ | If you want to call the JSON API out of the web client of another application or website, i.e. from a domain other than the Protogrid environment, | ||
+ | |||
+ | Please note that for security reasons, authentication using cookies is not possible in this context, i.e. each individual request must be called with either basic or header authentication. | ||
===== / | ===== / | ||
[POST] In order to obtain a session cookie you can use the authentication endpoint. | [POST] In order to obtain a session cookie you can use the authentication endpoint. | ||
- | Note: For this endpoint, in addition to the three variants above, the credentials can also be passed as JSON in the request body: | + | Note: For this endpoint, in addition to the three variants above, the credentials can also be passed as " |
<code javascript> | <code javascript> | ||
{ | { |