Hi,
I used the browser (Safari / Edge / Chrome) on my iPhone to access my application and found that I cannot access the js resource file normally.
The code snippet looks like this: <script type = 'module' src = 'main.js'>
After my research, I found when requesting JS resources, since type = 'module', it became a cross-domain request. Due to cross-domain, the required cookies are missing when requesting main.js on Browser, which causes the page to not display properly.
This is the test result I did on iOS 13.31 and Mac OS 10.15.3. Y means resources can be loaded normally, N means resources cannot be loaded normally.
iOS 13.31 | Mac OS 10.15.3 | |
Edge | N | Y |
Chrome | N | Y |
Safari | N | N |
My question:
Is this related to the browser kernel?
If it is related to the kernel, is this a feature or a bug?
How should we solve the problem that main.js does not load properly in these browsers?
Thanks.