X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgi.c;h=ec86b64b09e3187c68fd2a0d1e6b3e9c3075adb1;hp=d23d9e656d74ce04d6b3b47741fc0517bbb22047;hb=3641a6a4184c001eafc006ceca6452fbe4975995;hpb=767afb7f5d7062d75385b9ab3afdad47d0249a39 diff --git a/cgi.c b/cgi.c index d23d9e65..ec86b64b 100644 --- a/cgi.c +++ b/cgi.c @@ -1594,7 +1594,7 @@ struct http_response *finish_http_response(struct client_state *csp, struct http if (NULL != csp->config->cors_allowed_origin) { enlist_unique_header(rsp->headers, "Access-Control-Allow-Origin", - strdup_or_die(csp->config->cors_allowed_origin)); + csp->config->cors_allowed_origin); enlist_unique_header(rsp->headers, "Access-Control-Allow-Methods", "GET,POST"); enlist_unique_header(rsp->headers, "Access-Control-Allow-Headers", "X-Requested-With"); enlist_unique_header(rsp->headers, "Access-Control-Max-Age", "86400");