Skip to content

Commit 9cd026a

Browse files
authored
Add files via upload
1 parent 7003b6e commit 9cd026a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

script.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)