Open mittalyashu opened 5 years ago
My assumption is that the below code might be helpful. I placed it in:
src/main/index.js
function createWindow() {
...
session.defaultSession.webRequest.onHeadersReceived( ( details, callback ) => {
callback( {
responseHeaders: {
...details.responseHeaders,
'Content-Security-Policy': 'script-src \'self\' https://URL-TO-SITE.com',
},
} );
} );
}
Found an issue or bug with electron-vue? Tell me all about it!
On the homepage (a.k.a
/
route), when the app hot-reload there is no problem with the application it works perfectly fine, but when we move to sub-pages/repository/workspace
and then try to make some changes to the code, the electron app shows a blank screen.Describe the issue / bug.
It looks like the problem is in electron configuration, but it's not, instead, the problem is in the
.electron-vue
where the configuration of webpack exists.I think when it reloads the page when the is in sub-routes, for some reason, it forgets the URL (or something similar)
How can I reproduce this problem?
If visual, provide a screenshot.
Tell me about your development environment.
Could be related to https://github.com/SimulatedGREG/electron-vue/issues/437