Discord-Bot-Client
Discord-Bot-Client copied to clipboard
CORS
Access to XMLHttpRequest at 'http://discord.com/api/v6/experiments' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
i'm guessing this is dead now then?
If you have FireFox:
- Go to about:config
- Find "strict_origin_policy"
- Disable it.
If you have Chrome:
- Close Chrome.
- Launch Chrome directly with
"[PATH_TO_CHROME]\chrome.exe" --disable-web-security
This app seems using electron not for web, would not working on browser.
Electron needs to add webPreferences: { webSecurity: false } to BrowserWindow options below for disable cors.
https://github.com/ZomoXYZ/Discord-Bot-Client/blob/ddf13605aba9bb65147d0934bb4e8e2d83f2a274/main.js#L38-L41