diff options
Diffstat (limited to 'src/backend/anastasis-httpd.c')
-rw-r--r-- | src/backend/anastasis-httpd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c index 76f1d3e..ba5417b 100644 --- a/src/backend/anastasis-httpd.c +++ b/src/backend/anastasis-httpd.c @@ -389,6 +389,11 @@ url_handler (void *cls, upload_data, upload_data_size); } + if (0 == strcmp (method, + MHD_HTTP_METHOD_OPTIONS)) + { + return TALER_MHD_reply_cors_preflight (connection); + } return TMH_MHD_handler_static_response (&h405, connection); } @@ -429,6 +434,11 @@ url_handler (void *cls, upload_data, upload_data_size); } + if (0 == strcmp (method, + MHD_HTTP_METHOD_OPTIONS)) + { + return TALER_MHD_reply_cors_preflight (connection); + } return TMH_MHD_handler_static_response (&h405, connection); } |