Answering my own question. The issue:
Affects both WKWebView and Safari
Is not specific to iOS 18
Does not affect just local URLs; I can reproduce it during a port forwarding session to an external domain
How to reproduce with Nextjs which is the framework I'm using:
Install a self-signed certification for a domain like
Start a Nextjs dev server
Open any page in the Nextjs dev server in Safari on a Simulator
Open Safari Dev Tols
The Elements tab will be either empty or show only the very top level elements of the DOM. The Network and Sources tab will show a correct list of resources that have been loaded but won't show the responses as you'd normally see.
Topic:
Developer Tools & Services
SubTopic:
General
Tags: