Channel file and CDN

My main javascript (and so on all the static content) is included from https://static.anuary.com. The URL that the user is viewing is https://dev.anuary.com/somepath/.

Where should the channel file be, dev.anuary.comor static.anuary.com? This is currently http://static.anuary.com/channel.html .


I ask because I still get the error message:

Unsafe JavaScript attempt to access a frame with the URL https://www.facebook.com/dialog/oauth?access_token=[..†&api_key=[..†&app_id=[..†&client_id=[..†&display = popup & domain = dev.anuary.com & locales en_US & = amp; origin = 1 & redirect_uri = HTTP% 3A% 2F% 2Fstatic.ak.facebook.com% 2Fconnect% 2Fxd_arbiter.php% 3Fversion% 3D6% 23cb% 3Df3ac7a0544% 26origin% 3Dhttp% 253A% 252F% 252Fdev.anuary.com% 252af37% 26domain% 3Ddev.anuary.com% 26relation% 3Dopener% 26frame% 3Df312def42c & response_type = marker% 2Csigned_request & Volume = email% 2Cuser_birthday% 2Cuser_likes% 2Cuser_interests% 2Cpublish_stream & = joystick SDK from URL-url : URL-url : .com / 658fe23c24564ac978c31d167549c4ce8b36686d65a78ad99bfb38765d46e232 / . Domainsprotocols and ports must comply.


@dtbarne:

, - , , :

JavaScript URL- https://www.facebook.com/dialog/oauth?access_token=[..]&api_key=[..]&app_id=[..]&client_id=[..]&display=popup& = dev.anuary.com & en_US & = ; = 1 & redirect_uri = HTTP% 3A% 2F% 2Fstatic.ak.facebook.com% 2Fconnect% 2Fxd_arbiter.php% 3Fversion% 3D6% 23cb% 3Df1ee31b93% 26origin% 3Dhttp% 253A% 252F% 252Fdev.anuary.com% 252Ff9359b2f% 26domain% 3Ddev.anuary.com% 26relation% 3Dopener% 26frame% 3Df18e94f9c4 & response_type = % 2Csigned_request & = % 2Cuser_birthday% 2Cuser_likes% 2Cuser_interests% 2Cpublish_stream & = SDK URL- http://dev.anuary.com/658fe23c24564ac978c31d167549c4ce8b36686d65a78ad99bfb38765d46e232/. , .

+3
3

, , , , - .

Facebook By Design : > JavaScript URL-....
, , : Facebook - JavaScript URL.

, , " " , , .
, :

channelUrl , . . , , , channelUrl. -, channelUrl , , , - . -, . channelUrl, , fb_xd_bust fb_xd_fragment .

, :

.

.
, .
, , , JS SDK:

<?php
   $cache_expire = 60*60*24*365;
   header("Pragma: public");
   header("Cache-Control: max-age=".$cache_expire);
   header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
?>
<script src="//connect.facebook.net/en_US/all.js"></script>

( php, ).

, .

+1

, . dev.anuary.com. , FB URL, .

+1

The channel file must be located on the server / address that the user is visiting, since the channel file is used to fix JavaScript errors on several sites. If a user always accesses your site using HTTPS, you should link to the channel file using HTTPS, as well as any other content.

The channel file itself should remain as <script src="//connect.[..], but make sure all of your static contents and JS have all https enabled.

0
source

All Articles