Comments (6)
Removing the protocol.registerStandardSchemes()
call from main.js works.
But now I get
distrox.js:167 Fetch API cannot load app://./wasm/..._bg.wasm. URL scheme must be "http" or "https" for CORS request.
in the dev console...
from electron-wasm-rust-example.
After adding
protocol.registerSchemesAsPrivileged([
{ scheme: 'http', privileges: { bypassCSP: true } }
])
in main.js
, it cannot find the file (the _bg
file).
from electron-wasm-rust-example.
Seems that
protocol.registerSchemesAsPrivileged([
{ scheme: 'app', privileges: { bypassCSP: true, supportFetchAPI: true } }
])
does the trick.
from electron-wasm-rust-example.
Thanks for the report!
I'll have to try this myself later, maybe something has changed with electron, reopening.
from electron-wasm-rust-example.
Can confirm, this error happens when I upgrade to the latest electron.
from electron-wasm-rust-example.
Fixed by cdc7110
Seems like the problem was that protocol.registerStandardSchemes
was deleted in electron 5.
from electron-wasm-rust-example.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-wasm-rust-example.