eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject eagle git commit: [MINOR] Add Authorization into Access-Control-Allow-Headers header
Date Thu, 02 Mar 2017 10:18:26 GMT
Repository: eagle
Updated Branches:
  refs/heads/master 605e53a90 -> 75a92dcf6


[MINOR] Add Authorization into Access-Control-Allow-Headers header

Add `Authorization` into `Access-Control-Allow-Headers` header:

    "Access-Control-Allow-Headers": "Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method,
Access-Control-Request-Headers, Authorization"

Author: Hao Chen <hao@apache.org>

Closes #851 from haoch/FixAuthHeader.


Project: http://git-wip-us.apache.org/repos/asf/eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/eagle/commit/75a92dcf
Tree: http://git-wip-us.apache.org/repos/asf/eagle/tree/75a92dcf
Diff: http://git-wip-us.apache.org/repos/asf/eagle/diff/75a92dcf

Branch: refs/heads/master
Commit: 75a92dcf6ef57321ac1d7bd32a4756520da08d27
Parents: 605e53a
Author: Hao Chen <hao@apache.org>
Authored: Thu Mar 2 18:18:14 2017 +0800
Committer: Hao Chen <hao@apache.org>
Committed: Thu Mar 2 18:18:14 2017 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/eagle/blob/75a92dcf/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java
b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java
index 5b8141c..f0e0f87 100644
--- a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java
+++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/resource/SimpleCORSFiler.java
@@ -47,7 +47,7 @@ public class SimpleCORSFiler implements Filter {
         response.setHeader("Access-Control-Allow-Methods", "HEAD, POST, GET, PUT, OPTIONS,
DELETE");
         response.setHeader("Access-Control-Max-Age", "3600");
         response.setHeader("Access-Control-Allow-Headers",
-                "Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method,
Access-Control-Request-Headers");
+                "Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method,
Access-Control-Request-Headers, Authorization");
         chain.doFilter(request, response);
     }
 


Mime
View raw message