aj-techsoul / ELECTRON-4-PHP

An easiest way to use php in electron
MIT License
202 stars 46 forks source link

Error: Website requested a subresource #48

Open Henry-Turtle opened 1 year ago

Henry-Turtle commented 1 year ago

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!

aj-techsoul commented 1 year ago

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.