#Electron and Vue with proxy devserver not working?

32 messages · Page 1 of 1 (latest)

cinder cipher
#

What supposed to happens?

#

What page you open in electron?

#

Electron doesn't work with vue files

#

Same as browser

#

It work with html and js

#

So you should open a webpage

#

From web server or from file system

#

Show me your error

#

From devtools

#

Screenshot

#

I don't think it's electron related

#

Vite issue probably yes

#

Issue may be the same

#

Because of dev server

#

From webpack i suppose

#

ignore what?

#

webpack replace requests from your source codes with proxy

#

does it work from web browser?

#

open dev server page from browser

#

you have node modules enabled in renderer?

cinder cipher
#

in webpack configs

#

electron just open web page from devserver

#

and vue replace requests from domain a to domain b

#
Acess to fetch at 'http://localhost:1000' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
``` if you have such errors then proxy is working
#

what exactly?

#

you have many different errors

#

you had cors error