summaryrefslogtreecommitdiff
path: root/src/include/taler_mhd_lib.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-15 15:52:12 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-15 15:52:23 +0100
commit3b13aaf844f3b61950f437cb339fb881312ecf7b (patch)
treee9e174a171897025a8b08a9deef18b94e84dd765 /src/include/taler_mhd_lib.h
parent19d9369ff6df2e4bfd896cce5fcb2ae679402bc0 (diff)
downloadexchange-3b13aaf844f3b61950f437cb339fb881312ecf7b.tar.gz
exchange-3b13aaf844f3b61950f437cb339fb881312ecf7b.tar.bz2
exchange-3b13aaf844f3b61950f437cb339fb881312ecf7b.zip
respond with CORS headers for OPTIONS pre-flight request
Diffstat (limited to 'src/include/taler_mhd_lib.h')
-rw-r--r--src/include/taler_mhd_lib.h10
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