Electron-vue: Router Issue, Cannot Get when CTRL/CMD + R or Reload is Clicked

Created on 16 Mar 2018  路  3Comments  路  Source: SimulatedGREG/electron-vue

Found an issue or bug with electron-vue? Tell me all about it!

I have just tried the boilerplate out the first time, and I am moving from route to another route, at default it moves to the route, but if CTRL + R is clicked it shows cannot get error with the route link.

The following error is been shown in the console

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-vdjZcosZlrT8RbIl66uL4P8KawZHjNSV+bVC3gpYylg='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

sketch

Tell me about your development environment.
  • Node version: 9.4.0
  • NPM version: 5.7.1
  • Operating System: Windows

Most helpful comment

I noticed i was using history mode in my routing instead of using hash bang mode so i changed it back to using hash mode

All 3 comments

How did you fix this issue, Am having the same issue

I noticed i was using history mode in my routing instead of using hash bang mode so i changed it back to using hash mode

3 hours stucked in this issue, now I have some closure.
It isn't specified in the documentation? It is really simple, but messed up error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simdax picture simdax  路  3Comments

kinoli picture kinoli  路  3Comments

xiaomizhou66 picture xiaomizhou66  路  3Comments

michalzaq12 picture michalzaq12  路  3Comments

SimulatedGREG picture SimulatedGREG  路  4Comments