Getting Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME error in my HTML5 application

15.6k Views Asked by At

I am working on HTML5 application with Trigger IO framework.I tested it on iPhone and it is working well there.But problem is with the Android. I am getting following error when I debug the application.

Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME

this is for every resource file referenced from the html header. My header code is :

 <script src="js/jquery-1.11.1.min.js"></script>
 <script src="js/index.js"></script>

both files are present on the location and working well on iOS. But problem is with Android/Chrome. Any workaround ?

EDIT

Following is the header of the index.html :

      <head>
        <title>My App</title>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
'self'; img-src https://*; child-src 'none';">    
        <link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/slick.css" />
        <link rel="stylesheet" type="text/css" href="js/slick-theme.css"/>
        <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
        <link rel="stylesheet" href="css/jquery.mobile.structure-1.4.5.min.css" />
        <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.mobile-1.4.5.min.js"></script>
        <script type="text/javascript" src="js/jquery-migrate-1.2.1.min"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript" src="js/network.js"></script>
        <script type="text/javascript" src="js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="js/slick.min.js"></script>
     </head>

Note : If I remove jquery.mobile-1.4.5.min.js file then it is taking reference of index.js

1

There are 1 best solutions below

1
Antoine van Gelder On BEST ANSWER

It could be a regression of:

https://github.com/jquery/jquery-mobile/issues/6746

You can use the httpd module as a workaround for this and similar bugs in other libraries:

https://trigger.io/modules/httpd/current/docs/index.html