Skip to content

Failed to load module script #195

@Mqxx

Description

@Mqxx

Hey,
I have some problems loading JS scripts from my HTML.

That's the HTML that I want to display in WebView:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Home</title>
    <link rel="shortcut icon" href="./static/favicon.svg" type="image/x-icon" />
    <link rel="stylesheet" href="./index.css">
    <script type="module" src="./index.js" defer></script>  <!-- Here the server responds with the wrong mime type -->
  </head>
  <body></body>
</html>

Looks like the server always responds with MIME type of "text/html" instead of JavaScript-or-Wasm module. Is there a way I can fix this?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions