diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-15 15:52:12 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-15 15:52:23 +0100 |
commit | 3b13aaf844f3b61950f437cb339fb881312ecf7b (patch) | |
tree | e9e174a171897025a8b08a9deef18b94e84dd765 /src/include | |
parent | 19d9369ff6df2e4bfd896cce5fcb2ae679402bc0 (diff) | |
download | exchange-3b13aaf844f3b61950f437cb339fb881312ecf7b.tar.xz |
respond with CORS headers for OPTIONS pre-flight request
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_mhd_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/taler_mhd_lib.h b/src/include/taler_mhd_lib.h index c836e4469..966ba6a09 100644 --- a/src/include/taler_mhd_lib.h +++ b/src/include/taler_mhd_lib.h @@ -441,4 +441,14 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, struct TALER_MHD_Legal *legal); +/** + * Send back a "204 No Content" response with headers + * for the CORS pre-flight request. + * + * @param connection the MHD connection + * @return MHD result code + */ +int +TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection); + #endif |