AlgoListed
AlgoListed copied to clipboard
Privacy Badger plugin causes a CORS error in Coding Competitions page
When I try to access the "Coding Competitions" tab I get an infinitely loading screen alongside these error messages:
I tried it on a few different branches and IDEs but I still get the same result.
Looks like a CORS issue.
According to Google, to fix this error, you can try the following steps:
- Check if the server is configured to allow CORS requests: Make sure that the server at the URL https://script.google.com/macros/s/AKfycbzXyVH1o6CzzJUfLN0qC-EscTKQeKouAUlU3oBs_S85WvB13wPHuawZLK43QJrqBua3Ng/exec is configured to allow cross-origin requests. If the server is not configured to allow CORS requests, you will need to contact the server administrator and ask them to enable CORS.
- Use a CORS proxy: If the server is not configured to allow CORS requests, you can try using a CORS proxy to make the request. A CORS proxy is a server that acts as an intermediary between your client and the server, adding the necessary CORS headers to the response.
- Use the no-cors mode: If you are making a request using the fetch() function, you can try using the no-cors mode by setting the mode option to 'no-cors'. This will prevent the browser from blocking the request, but it will also prevent you from reading the response from the server.
Okay I disabled Privacy Badger and it fixed the issue. We might want to look into addressing this, though. Privacy Badger is an extremely commonly used extension.
Originally posted by @JordanAdair in https://github.com/Nayaker/AlgoListed/issues/61#issuecomment-1368272203