I am trying to connect with linkedin in the site in chrome browser its showing the error:
阻止具有来源“ https://platform.linkedin.com ”的框架访问具有来源网站的框架。协议、域和端口必须匹配。
阻止具有来源“ https://platform.linkedin.com ”的框架访问具有来源网站的框架。请求访问的框架将“document.domain”设置为“linkedin.com”,但被访问的框架没有。两者都必须将“document.domain”设置为相同的值才能允许访问。代码:
<script type="text/javascript" src="https://platform.linkedin.com/in.js">
api_key: hjltf4pxjaa3
scope : r_basicprofile,r_fullprofile,r_network,rw_groups,r_emailaddress,w_messages
onLoad: onLinkedInLoad
authorize: false
credentials_cookie: true
</script>
<script type="text/javascript">
function onLinkedInAuth(){
$.blockUI();
IN.API.Profile("me")
.fields("id","firstName","lastName","email-address","headline","pictureUrl","location:(name)","industry","positions","current-status","current-status-timestamp","last-modified-timestamp","associations","honors","interests","publications","patents","languages","skills","certifications","educations","courses","three-current-positions","three-past-positions","num-recommenders","recommendations-received","following","date-of-birth","connections","group-memberships")
.result(displayProfiles);
}
Please help me out. Thanks in advance.