This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
How to config proxyTable for CORS #387
Comments
axios call: this.$http.get('http://127.0.0.1:8000/api/v2/users', qs.stringify({
headers: {
'Access-Control-Allow-Origin': '*'
}
})).then(response => {
// success callback
console.log(response)
}, response => {
// error callback
console.log(response)
}) and servcie already config. |
insert webPreferences: {webSecurity: false} at new BrowserWindow() like this: mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000,
frame: false,
webPreferences: {webSecurity: false}
}) |
adrinicomartin
added a commit
to adrinicomartin/electron-vue
that referenced
this issue
Mar 2, 2018
Documentation change after SimulatedGREG#387. This can save a lot of time for newer people in electron and vuejs.
adrinicomartin
added a commit
to adrinicomartin/electron-vue
that referenced
this issue
Mar 2, 2018
Documentation change after SimulatedGREG#387. This can save a lot of time for newer people in electron and vuejs.
bryan-justin
added a commit
to bryan-justin/vue-template-electron
that referenced
this issue
May 1, 2022
Documentation change after SimulatedGREG/electron-vue#387. This can save a lot of time for newer people in electron and vuejs.
Artem0328
added a commit
to Artem0328/electron-vue
that referenced
this issue
Sep 15, 2023
Documentation change after SimulatedGREG/electron-vue#387. This can save a lot of time for newer people in electron and vuejs.
JeffUlan
added a commit
to JeffUlan/electron-vue
that referenced
this issue
Sep 17, 2023
Documentation change after SimulatedGREG/electron-vue#387. This can save a lot of time for newer people in electron and vuejs.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use :
error log:
How to config proxyTable for CORS ?
thanks.
The text was updated successfully, but these errors were encountered: