Fixing CORS issue with stylesheet selector check.