projects
/
opensrf-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
LP#1002028: support CORS for HTTPS
[opensrf-equinox.git]
/
src
/
gateway
/
apachetools.c
diff --git
a/src/gateway/apachetools.c
b/src/gateway/apachetools.c
index
f1fca1b
..
e7343dd
100644
(file)
--- 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;