Restrict to local files only #61
Replies: 3 comments 5 replies
-
|
I believe you can achieve this by the following setting: But these two values seem to have been removed from the lates CEF (at least missing from the one QCefView refere to) |
Beta Was this translation helpful? Give feedback.
-
|
Please refere to this: I will add the method to add cmdline args. |
Beta Was this translation helpful? Give feedback.
-
|
QCefView/example/QCefViewTest/main.cpp Lines 8 to 29 in 31e69c8 Hope the new method could help you. QCefConfig.addCommandLineSwitch QCefConfig.addCommandLineSwitchWithValue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm embedding a QCefView into my application, which I will use to render HTML+JS based plugins. This works great so far, but I'm wondering it is possible to restrict the CEF context to only allow loading local files, so plugins cannot connect externally (to the internet). Looking at the following struct, it seems like CEF at least partially supports this,but I'm unsure how it relates to your wrapper of the CefCore. https://github.com/chromiumembedded/cef/blob/113a96be0d3b125798145d74bc03148a03f67e5b/include/internal/cef_types.h#L2780
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions