add CORS header globally always (#6029)

This commit is contained in:
Christian Grothoff 2020-01-08 10:39:00 +01:00
parent 97f71c83a7
commit ea9c15026a
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -69,6 +69,10 @@ TALER_MHD_add_global_headers (struct MHD_Response *response)
MHD_add_response_header (response,
MHD_HTTP_HEADER_CONNECTION,
"close"));
GNUNET_break (MHD_YES ==
MHD_add_response_header (response,
MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
"*"));
}