ELECTRON-4-PHP icon indicating copy to clipboard operation
ELECTRON-4-PHP copied to clipboard

Error: Website requested a subresource

Open Henry-Turtle opened this issue 2 years ago • 1 comments

Hey there! My project worked just fine when running it off "npm run start" ("electron ."). I compiled my website for MacOS, but when I tried to open the app I got a blank white page. Seeking more information, I opened developer tools and Chromium gave me the following yellow error:

[Deprecation] The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021). See https://chromestatus.com/feature/5436853517811712 for more details.

I have php installed globally and the project worked just fine on windows. Why isn't is working here? Thanks!

Henry-Turtle avatar Jan 16 '23 19:01 Henry-Turtle

Sorry, for late Reply, it could be possible due to https mandates. check that the website uses https or http. check the .htaccess , try to toggle https: and http.

Also. i am working on better option that this with new technologies. So that we can get more power of php and desktop and mobile based. So i am unable to focus more on this.

aj-techsoul avatar Jul 13 '23 13:07 aj-techsoul