We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3e45d8 commit 5b60fbeCopy full SHA for 5b60fbe
lib/plugins/solution.discuss.js
@@ -24,9 +24,9 @@ function setupHeaders(opts, user) {
24
opts.headers['X-Requested-With'] = 'XMLHttpRequest';
25
26
opts.headers['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0';
27
- opts.headers['Referer'] = 'https://leetcode.cn';
28
- opts.headers['Origin'] = 'https://leetcode.cn/';
29
- opts.headers['Host'] = 'leetcode.cn';
+ opts.headers['Referer'] = 'https://leetcode.com';
+ opts.headers['Origin'] = 'https://leetcode.com/';
+ opts.headers['Host'] = 'leetcode.com';
30
opts.headers['Content-Type'] = 'application/json';
31
opts.headers['Accept'] = 'application/json';
32
}
0 commit comments