Modern web applications consist of a variety of resources served from different domains. This poses security challenges for…