CORS: expose response headers by default

This commit is contained in:
Florian Dold 2021-10-19 17:44:07 +02:00
parent bde1394ee4
commit fa30a132a5
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -268,6 +268,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
/* Not available as MHD constant yet */ /* Not available as MHD constant yet */
"Access-Control-Allow-Methods", "Access-Control-Allow-Methods",
"*")); "*"));
GNUNET_break (MHD_YES ==
MHD_add_response_header (response,
/* Not available as MHD constant yet */
"Access-Control-Expose-Headers",
"*"));
{ {
MHD_RESULT ret; MHD_RESULT ret;