HTML tag requests

Cross-origin request from <script> tag

Summary

Using a <script> tag triggers a cross-origin request for JavaScript code. The browser allows these requests by default, without requiring CORS.

Instructions

  1. Hit green button below and see time updated by dynamically loaded JavaScript
  2. Observe difference between source and request origins, confirming cross-origin request

What's the time?

View source on GitHub | Created by Tom Gregory