I'm setting up an electron app, with a index.html that contains a webview. The webview got a reverse proxy attached to it, changing all "/" routes. This means that I can't load any CDN libraries (JQUERY) in the webview. Is there a way to still load JQUERY? currently if I try with:
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
I get error "Failed to load resource: net::ERR_EMPTY_RESPONSE".
I made the reverse proxy with express, changing route like this:
express.get('/', function (req, res) {
res.sendFile('home.html', {root: __dirname});
})
Update:
Its not only jquery but also other libaries
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.