Files
gristlabs_grist-core/app/server/lib
Alex Hall e590e65a3f (core) Allow requests from untrusted origins but without credentials
Summary:
Allow requests from untrusted origins instead of returning an error, but don't allow credentials (Cookie header) or API keys (Authorization header).

Allow setting the header `Content-type: application/json` as an alternative to `X-Requested-With: XMLHttpRequest` to make it easier for clients to make POST/PUT/PATCH/DELETE requests without authentication.

Discussion: https://grist.slack.com/archives/C0234CPPXPA/p1666355281535479

Test Plan: Added and updated DocApi tests. Tested manually how this affects requests made from a browser.

Reviewers: paulfitz, dsagal

Reviewed By: paulfitz, dsagal

Differential Revision: https://phab.getgrist.com/D3678
2022-11-03 13:33:23 +02:00
..
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-09-29 18:02:09 +02:00
2022-05-27 22:19:17 -04:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-09-14 14:55:44 -04:00
2022-09-14 14:55:44 -04:00
2022-07-04 10:42:40 -04:00
2022-10-17 13:38:21 +02:00
2022-06-17 21:53:20 +02:00
2022-05-18 08:02:32 -07:00
2022-10-17 13:38:21 +02:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2022-10-17 13:38:21 +02:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-08-25 12:38:36 -07:00
2022-04-27 22:21:55 +02:00