Why a Page Loads Fine Directly But Fails When Fetched
Field Note #144
You paste a URL straight into your browser’s address bar. It loads perfectly — real content, right there. But the exact same URL, requested by your own page’s JavaScript instead of typed in directly, fails every time. Same file. Same server. Same everything, as far as you can tell. Different result.
Tagged in :