HTML tag requests

Cross-origin request from <link> tag

Summary

Using a <link> tag triggers a cross-origin request for a CSS stylesheet. The browser allows these requests by default, without requiring CORS.

Instructions

  1. Hit green button below and see text styles applied from dynamically loaded stylesheet
  2. Observe difference between source and request origins, confirming cross-origin request

styled by link tag

View source on GitHub | Created by Tom Gregory