1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibWeb+Browser: Disable Same-Origin Policy by default for now

Until we have CORS preflight checks working, this is only getting in the
way of testing and I have to disable it manually all the time.
This commit is contained in:
Andreas Kling 2021-10-03 23:39:07 +02:00
parent 573955be7f
commit f8354c5503
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,8 @@ private:
RefPtr<BrowsingContext> m_top_level_browsing_context;
WeakPtr<BrowsingContext> m_focused_context;
bool m_same_origin_policy_enabled { true };
// FIXME: Enable this by default once CORS preflight checks are supported.
bool m_same_origin_policy_enabled { false };
};
class PageClient {