2014-01-27 1 views
0

OAuth 사이트 또는 OAuth 근처에서 사용할 수있는 유연성을 갖춘 AS3 용 OAuth 라이브러리 (웹, 에어, 모바일)를 사용하고 싶습니다. . 필자가 작성한 샘플 앱은 Google 인증을 받았으며 Google 드라이브를 사용하는 앱을 작성하려고합니다. 순간 공기와 모바일 응용 프로그램이 잘 작동하지만, 웹 플래시 플레이어 응용 프로그램은 나에게이 오류주고 유지에서 오류 # https://accounts.google.com에 액세스하는 보안되지 않은 보안 오류

:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost:81/OAuthWebExample.swf cannot load data from https://accounts.google.com/o/oauth2/token. 

(나는 같은 오류를 할 때 포트 80이 아닌 로컬 호스트의 도메인)

가 나는 https://accounts.google.com/crossdomain.xml 살펴 보았다이있는 :

<site-control permitted-cross-domain-policies="by-content-type" /> 

나는 그게 무슨 뜻인지 모르겠습니다 ...

나는이 구글 API와 대화하기 위해 플래시를 얻을 수 있다고 확신한다. 이 기능을 작동 시키려면 어떻게해야합니까?

(필자는 feedburner 또는 이와 유사한 프록시를 사용하는 "워크 라운드"에 관심이 없습니다.) 감사합니다.

답변

0

I have looked at https://accounts.google.com/crossdomain.xml

그것은 마스터 정책 파일의하고 accounts.google.com 도메인의 콘텐츠에 대한 권한을 부여하지 않기 때문에 플래시 플레이어 화재

I am not sure what that means...

It meanssecurityError

(를 withing에하지 allow-access-from 노드가) :

by-content-type: [HTTP/HTTPS only] Only policy files served with Content-Type: text/x-cross-domain-policy are allowed

그래서 하위 도메인 서비스와 어린이용으로 설계된 것 같습니다 crossdomain.xml 요요 u는 accounts.google.com에서 직접 데이터를로드 할 수 없습니다. 플래시 Google Oauth crossdomain.xml problem with Flex에 대해 Google OAuth과 동일한 문제가 발견되었으며 인증 문제를 해결하기 위해 이전 AuthSub (적절하게 crossdomain.xml과 함께 accounts.googleapis.com을 사용해야 함)을 사용해야하며 지난 2 년 동안 변경된 사항이없는 것으로 보입니다.

관련 문제