Comments (8)
LCU responds with header Referrer Policy: strict-origin-when-cross-origin
.
Then all cross-orgin and cross-scheme (https
-> pengu://
) requests will be blocked.
Since Chromium v87, there's no way to bypass CORS policy, disabling whole web security is not a good idea.
from penguloader.
@nomi-san as far as i can see, it manageable
virtual bool AddCustomScheme(const CefString& scheme_name, int options) = 0;
CEF_SCHEME_OPTION_CORS_ENABLED = 1 << 4
from penguloader.
Yesh, this method allows cross-scheme import
, but cant bypass resource requests.
Also tried CefAddCrossOriginWhitelistEntry()
.
// This function cannot be used to bypass the restrictions on local or display
// isolated schemes. See the comments on CefRegisterCustomScheme for more
// information.
from penguloader.
@nomi-san it definitely can, i playing around and now at the point where i just not good enough to implement cef_resource_handler_t
and i just get crashes, but request doesnt get blocked by cors
https://gist.github.com/VanillaMaster/74392111ffcdb5c31a2b005610c2e7e9
from penguloader.
Fetch API should not work on non HTTP scheme, even with CEF_SCHEME_OPTION_FETCH_ENABLED
.
from penguloader.
but esm imports works fine
from penguloader.
Fetch API should not work on non HTTP scheme, even with
CEF_SCHEME_OPTION_FETCH_ENABLED
.
then whats the point of thet option ...
from penguloader.
In case of switching to custom scheme, what will you do
- Replacing
https://plugins
withpengu://plugins
, that has no meaning - Replacing
https://plugins
withplugins://<name>
(name is TLD, alias of pkg), you will do more work
And both cases need to redirect ALL requests that point to https://plugins/
. Also exising plugins have used fetch to acquire their resouces will not work.
I will not handle this case.
from penguloader.
Related Issues (20)
- Bug: Application Error in rundll32.exe
- Simple Optimization HOT 3
- Bootstrapper failed with error 0x5
- DevTools display on 2k screen HOT 3
- rcp.whenReady should support for late init HOT 3
- Grouping plugins by author HOT 1
- Shared TS types & enhancement HOT 1
- Experiment: TypeScript and JSX Support 🗿
- Plugin Browser HOT 3
- erro microsoft HOT 2
- Stream Bugged HOT 1
- How will the new League of Legends anti cheat Vanguard react to Pengu's injection into the LCU? HOT 11
- Discord Invites HOT 1
- Discord Invites are closed HOT 1
- 能否增加一个拦截直播弹窗? HOT 1
- Options to disable Pengu Loader loading screen and toast message HOT 5
- Cannot click active status on HOT 1
- Failed to perform activation HOT 8
- Guide: Build and Install on macOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penguloader.