QasimWani / LeetHub

Automatically sync your leetcode solutions to your github account - top 5 trending GitHub repository
https://chrome.google.com/webstore/detail/leethub/aciombdipochlnkbpcbgdpjffcfdbggi
MIT License
3.95k stars 1.39k forks source link

leetcode.cn/api has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. #569

Open ranggaaldosas opened 1 year ago

ranggaaldosas commented 1 year ago

Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.

ERR_FAILED /problems/kids-with-the-greatest-number-of-candies/solutions/3425582/easy-solutions-in-java-python-and-c-look-at-once-with-exaplanation/?envType=study-plan-v2&envId=leetcode-75:1 Access to XMLHttpRequest at 'https://leetcode.cn/api/is_china_ip/' from origin 'https://leetcode.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Describe the bug the automatic sync is not working on me

To Reproduce Steps to reproduce the behavior:

  1. Go to 'any leetcode submission'
  2. Click on 'inspect & consolelog'
  3. See error

Expected behavior It should have automatically uploaded, but there's some error on the console.log

Screenshots Console.log error

Additional context Add any other context about the problem here.