Closed dixonsiu closed 6 years ago
Return a HTML with redirect meta tag.
function create301HTML(url) {
var html = [
'<html>',
'<head>',
'<meta http-equiv="refresh" ',
'content="0;URL=\'' + url + '\'" />',
'</head>',
'<body></body>',
'</html>'
].join("");
return html;
};
return {
status : 200,
headers: {"Content-Type":"text/html"},
body : [create301HTML(redirectUrl)]
};
This problem has been fixed with commit dd351d02f09b69547d03d18ad12232e7a818b6a6 and released in v1.5.12.
In order to support OAuth 2.0, we need to redirect from App Cell to Google Authorization Server.
Currently 302 will not work properly. Must use 301 to move to the server completely.