In the second attempt, you placed the file in the css subfolder of the www root folder. This is the right way to do this, but then you need to reference it using the relative path as follows:
<link rel="stylesheet" type="text/css" href="css/file.css" />
Edit
First of all, if your application is redirected to a server, Apple and possibly other stores will reject your application. According to Appleβs rules , your application must be functional, not just a repackaged site.
Having said that, since you are being redirected to the server, your CSS (and JS) is best left on the server and not imported locally. Just make sure your web page is working correctly in the browser and is connected to the CSS file on the server in a standard way, and will work correctly when your application is redirected to it.
Of course, you need a whitelist of your website, but I assume that you have already done this.
source share