From a0d77ca83403ff8ae8c4c81395b95faebecbdd4a Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Tue, 20 Nov 2018 12:57:08 +0100 Subject: fix cords through proxy --- src/gns/gnunet-gns-proxy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 9f664e4dd..a502e0b65 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1229,8 +1229,10 @@ curl_check_hdr (void *buffer, /* Ignore transfer encoding, set automatically by MHD if required */ goto cleanup; } - if (0 == strcasecmp (MHD_HTTP_HEADER_LOCATION, - hdr_type)) + if ((0 == strcasecmp (MHD_HTTP_HEADER_LOCATION, + hdr_type)) || + (0 == strcasecmp (MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN, + hdr_type))) { char *leho_host; -- cgit v1.2.3