【发布时间】:2019-04-23 21:20:48
【问题描述】:
我有一个 android 应用程序,它具有通过 Instagram 执行社交登录的 webview。 当我尝试加载以下网址时: "https://api.instagram.com/oauth/authorize/?client_id=ba231a873ea145af9f97866de4718fe6&redirect_uri=https://instagram.com/&response_type=token&display=touch&scope=public_content" 出现了一些铬错误。 当我尝试通过常用浏览器加载相同的 url 时,知道它工作正常。
I/chromium: [INFO:CONSOLE(0)] "The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled.
", source: https://www.instagram.com/accounts/login/?force_authentication=1&only_user_pwd_authentication=1&platform_app_id=&next=/oauth/authorize/%3Fclient_id%3Dba231a873ea145af9f97866de4718fe6%26redirect_uri%3Dhttps%3A//instagram.com/%26response_type%3Dtoken%26display%3Dtouch%26scope%3Dpublic_content (0)
I/chromium: [INFO:CONSOLE(15)] "The key "viewport-fit" is not recognized and ignored.", source: https://www.instagram.com/accounts/login/?force_authentication=1&only_user_pwd_authentication=1&platform_app_id=&next=/oauth/authorize/%3Fclient_id%3Dba231a873ea145af9f97866de4718fe6%26redirect_uri%3Dhttps%3A//instagram.com/%26response_type%3Dtoken%26display%3Dtouch%26scope%3Dpublic_content (15)
有什么办法可以解决这个问题吗?
【问题讨论】: