Google Home Action生产环境OAuth页面空白,Alpha环境正常求助
Google Home Action生产环境OAuth页面空白被拒,求可行调试方法
我们开发的Google Home Action在Alpha测试环境中运行完全正常,所有测试均通过,OAuth功能也可正常工作。但尝试发布至生产环境时,已因“OAuth页面空白”被拒绝4次。
我们已将OAuth页面简化为最基础的HTML(无JavaScript、仅少量CSS),仍遭拒绝。Google Home Actions团队无法提供任何日志或错误信息,我们检查服务器日志也未发现异常。现寻求调试该问题的可行方法。
OAuth页面HTML代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Link COMPANY NAME to Google</title> <style> body { padding: 40px; margin: auto; font-family: Arial; text-align: start; } .header { padding: 8px; text-align: center; } /* .contentHeader { text-align: center; } */ .instructions { text-align: center; margin: auto; align-items: start; } .text_form { text-align: center; margin: auto; align-items: start; } .submit { background-color: rgb(0, 51, 255); padding: 12px 24px; margin: 4px; border: none; color: white; font-weight: bold; } </style> </head> <body> <div class="header"> <div class="brandingLogo"><img src="/COMPANY-logo.png" /></div> </div> <div class="content"> <div class="instructions"> <p>By entering the pin, you are authorizing Google to control your devices.</p> </div> <div class="text_form"> <form action="/oauth" method="post"> <label for="text">Enter pin:</label> <input type="text" id="text" name="text"> <input type="hidden" name="redirect_uri" value="${url}"> <input type="hidden" name="state" value="${state}"> <br></br> <input type="submit" class="submit" value="Agree and link"> </form> </div> </body> </html>
Express CORS配置
app.use(cors({ origin: '*' }));
求各位提供帮助。
内容的提问来源于stack exchange,提问作者DrZaphod
相关产品推荐
相关产品推荐

