[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f0538nUUu_d95hbvKX7U26njWpA5DsmgkyjQJidkU108":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},155,"2025-03-15T06:54:52.907Z","web中Google登录或者firebase登录遇到的access blocked的问题","之前我在别的文章中已经写过关于在web中实现Google/firebase登录的几种方式和如何优雅实现重定向的步骤，这篇文章是我对之前文章没有明确问题的补充。\n\n问题：\n> Access blocked: project-xxxx's request does not comply with Google's policies\n\n或者\n> Error 403:disallowed_useragent\n\n上述问题出现的原因：在mobile移动端的系统浏览器（比如Safari、Google），以及其他App（比如Facebook、Tiktok、Twitter、Snapchat等）的内置webview中，当使用Google的web auth登录集成时，如果是弹出式pop up的授权弹窗，那么基本上会被浏览器或者webview所阻止，导致产品的注册/登录成功率低。\n\n以下是在上面提到的平台platform上授权登录弹窗被阻止的截图：\n![web auth login fail 1.jpg](https://image.xinwei.ltd/IMG_3137%20%E5%B0%8F1742021242267.jpeg)\n\n![web auth login fail 2.jpg](https://image.xinwei.ltd/IMG_3136%20%E5%B0%8F1742021242059.jpeg)\n\n![web auth login fail 3.png](https://image.xinwei.ltd/IMG_31391742021207505.PNG)\n\n![web auth login fail 4.png](https://image.xinwei.ltd/image1742021399233.png)\n\n解决方案：\n我之前在其他的文章中有提到过，大家可以参考那片文章：[https://www.xinwei.ltd/article/141](https://www.xinwei.ltd/article/141)\n\n![web auth reference.png](https://image.xinwei.ltd/image1742021537792.png)\n\n这篇文章就是为了将报错“access blocked”指向我的那篇没有贴出报错截图的文章，防止大家在搜索问题答案的时候不能找到对应的解决办法。\n\n以上。\n\n","这篇文章是对之前的一片文章的补充，补充一些遇到报错的截图，详细的解决办法在另外一篇文章中已经给出，这里是报错的一些截图。","https://image.xinwei.ltd/IMG_3137%20%E5%B0%8F1742021242267.jpeg",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",32,{"id":24,"name":26,"parentId":21},"前端",[],"",381,0,"web auth login,google login,firebase login,web google,web firebase,web access blocked"]