This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
commit fc5ee8d4e3108bef0cb2b0d77a932786ec98472d Author: frogfather <[email protected]> AuthorDate: Tue Dec 11 16:16:35 2018 +0000 remove unnecessary headers from response --- .../apache/brooklyn/rest/security/jaas/GoogleOauthLoginModule.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/security/jaas/GoogleOauthLoginModule.java b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/security/jaas/GoogleOauthLoginModule.java index 2a773dc..9a187ef 100644 --- a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/security/jaas/GoogleOauthLoginModule.java +++ b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/security/jaas/GoogleOauthLoginModule.java @@ -327,10 +327,6 @@ public class GoogleOauthLoginModule implements LoginModule { // signed in .append("&approval_prompt=force"); // this requires them to verify which account to use, if they are // already signed in - - response.addHeader("Origin", "http://localhost.io:8081"); - response.addHeader("Access-Control-Request-Method", "GET, POST"); - response.addHeader("Access-Control-Request-Headers", "origin, x-requested-with"); logger.debug(oauthUrl.toString()); response.sendRedirect(oauthUrl.toString()); return false;
