add another CORS header to allow client to send any headers
This commit is contained in:
parent
e5078fcfe8
commit
fccde25183
@ -284,6 +284,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
|
|||||||
/* This adds the Access-Control-Allow-Origin header.
|
/* This adds the Access-Control-Allow-Origin header.
|
||||||
* All endpoints of the exchange allow CORS. */
|
* All endpoints of the exchange allow CORS. */
|
||||||
TALER_MHD_add_global_headers (resp);
|
TALER_MHD_add_global_headers (resp);
|
||||||
|
GNUNET_break (MHD_YES ==
|
||||||
|
MHD_add_response_header (resp,
|
||||||
|
// Not available as MHD constant yet
|
||||||
|
"Access-Control-Allow-Headers",
|
||||||
|
"*"));
|
||||||
GNUNET_assert (MHD_YES == MHD_queue_response (connection, MHD_HTTP_NO_CONTENT,
|
GNUNET_assert (MHD_YES == MHD_queue_response (connection, MHD_HTTP_NO_CONTENT,
|
||||||
resp));
|
resp));
|
||||||
return MHD_YES;
|
return MHD_YES;
|
||||||
|
Loading…
Reference in New Issue
Block a user