File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -633,10 +633,19 @@ function fetchWithJsonp(url) {
633633 resolve ( data ) ;
634634 } ;
635635
636- // リファラー情報を追加
636+ // リファラー情報を追加(複数の方法で試行)
637637 const currentUrl = window . location . href ;
638638 const separator = url . indexOf ( '?' ) >= 0 ? '&' : '?' ;
639- const urlWithReferrer = url + separator + 'callback=' + callbackName + '&referrer=' + encodeURIComponent ( currentUrl ) ;
639+ const urlWithReferrer = url + separator + 'callback=' + callbackName +
640+ '&referrer=' + encodeURIComponent ( currentUrl ) +
641+ '&ref=' + encodeURIComponent ( currentUrl ) +
642+ '&source=' + encodeURIComponent ( currentUrl ) ;
643+
644+ console . log ( '=== JSONP リクエスト詳細 ===' ) ;
645+ console . log ( '元のURL:' , url ) ;
646+ console . log ( '現在のページURL:' , currentUrl ) ;
647+ console . log ( 'エンコード済みリファラー:' , encodeURIComponent ( currentUrl ) ) ;
648+ console . log ( '最終リクエストURL:' , urlWithReferrer ) ;
640649
641650 // スクリプトタグを作成してJSONPリクエスト
642651 const script = document . createElement ( 'script' ) ;
You can’t perform that action at this time.
0 commit comments