Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

CORS #27

Open
VueDevOps opened this issue Aug 8, 2020 · 2 comments
Open

CORS #27

VueDevOps opened this issue Aug 8, 2020 · 2 comments

Comments

@VueDevOps
Copy link

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?

@CatboyCoding
Copy link

If you have FireFox:

  1. Go to about:config
  2. Find "strict_origin_policy"
  3. Disable it.

If you have Chrome:

  1. Close Chrome.
  2. Launch Chrome directly with "[PATH_TO_CHROME]\chrome.exe" --disable-web-security

@yuta0801
Copy link

yuta0801 commented Aug 10, 2020

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.

mainWindow = new BrowserWindow({
width: 1030, height: 800,
minWidth: 760, minHeight: 200
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants