projects
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8dbf0c
)
LP#1002028: support CORS for HTTPS
author
Galen Charlton
<gmc@esilibrary.com>
Thu, 21 Aug 2014 16:13:23 +0000
(09:13 -0700)
committer
Galen Charlton
<gmc@esilibrary.com>
Thu, 21 Aug 2014 16:13:23 +0000
(09:13 -0700)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/gateway/apachetools.c
patch
|
blob
|
history
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;