Added a check before processing a stylesheet to ensure that the URL of the stylesheet is on the same domain to avoid cross-domain issues.