From: Galen Charlton Date: Thu, 21 Aug 2014 16:13:23 +0000 (-0700) Subject: LP#1002028: support CORS for HTTPS X-Git-Tag: osrf_rel_2_4_0-alpha~4 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bc914bf1933cc7a9272134fd4bbeb7601d233903;p=OpenSRF.git LP#1002028: support CORS for HTTPS Signed-off-by: Galen Charlton --- diff --git a/src/gateway/apachetools.c b/src/gateway/apachetools.c index f1fca1b..e7343dd 100644 --- a/src/gateway/apachetools.c +++ b/src/gateway/apachetools.c @@ -179,6 +179,8 @@ int crossOriginHeaders(request_rec* r, osrfStringArray* allowedOrigins) { char *host = origin; if ( !strncmp(origin, "http://", 7) ) host = origin + 7; + if ( !strncmp(origin, "https://", 8) ) + host = origin + 8; int found = 0; int i;