mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support and enable out-of-Blink CORS (fixes issue #2716)
It can still be disabled for a short time by passing `--disable-features=OutOfBlinkCors` on the command-line.
This commit is contained in:
@@ -12,7 +12,9 @@ namespace content {
|
||||
class RenderProcessHost;
|
||||
}
|
||||
|
||||
class GURL;
|
||||
namespace url {
|
||||
class Origin;
|
||||
}
|
||||
|
||||
struct Cef_CrossOriginWhiteListEntry_Params;
|
||||
|
||||
@@ -23,6 +25,7 @@ void GetCrossOriginWhitelistEntries(
|
||||
|
||||
// Returns true if |source| can access |target| based on the cross-origin white
|
||||
// list settings.
|
||||
bool HasCrossOriginWhitelistEntry(const GURL& source, const GURL& target);
|
||||
bool HasCrossOriginWhitelistEntry(const url::Origin& source,
|
||||
const url::Origin& target);
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
|
||||
|
Reference in New Issue
Block a user