我在Ionic2应用程序上创建了Twitter身份验证。
当我ionic serve
时,一切正常,但如果我点击Twitter登录按钮时ionic serve --lab
我收到此错误:
Refused to display 'https://api.twitter.com/oauth/authenticate?
oauth_token=xxxxxxxxxxx' in a frame because an ancestor violates the
following Content Security Policy directive: "frame-ancestors 'self'
https://tweetdeck.twitter.com https://tdapi-staging.smf1.twitter.com
https://tdapi-staging.atla.twitter.com https://tweetdeck.localhost.twitter.com".
我也尝试做离子运行的android,当我点击twitter登录按钮时,在我的手机上没有任何事情发生。