Add TO Golang Set-Cookie to CORS allow headers

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/128c6a2d
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/128c6a2d
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/128c6a2d

Branch: refs/heads/master
Commit: 128c6a2d88daf230ac9c87083d71a2d24206c15d
Parents: 89491c1
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Thu Jul 27 10:54:10 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/traffic_ops_golang/wrappers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/128c6a2d/traffic_ops/traffic_ops_golang/wrappers.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/wrappers.go 
b/traffic_ops/traffic_ops_golang/wrappers.go
index 386e278..39137ac 100644
--- a/traffic_ops/traffic_ops_golang/wrappers.go
+++ b/traffic_ops/traffic_ops_golang/wrappers.go
@@ -33,7 +33,7 @@ const ServerName = "traffic_ops_golang" + "/" + Version
 func wrapHeaders(h RegexHandlerFunc) RegexHandlerFunc {
        return func(w http.ResponseWriter, r *http.Request, p ParamMap) {
                w.Header().Set("Access-Control-Allow-Credentials", "true")
-               w.Header().Set("Access-Control-Allow-Headers", "Origin, 
X-Requested-With, Content-Type, Accept")
+               w.Header().Set("Access-Control-Allow-Headers", "Origin, 
X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie")
                w.Header().Set("Access-Control-Allow-Methods", 
"POST,GET,OPTIONS,PUT,DELETE")
                w.Header().Set("Access-Control-Allow-Origin", "*")
                w.Header().Set("X-Server-Name", ServerName)

Reply via email to