Is there a solution to modify headers on safari for iOS just like with ModHeader extension for other browsers
You can use the Requestly desktop app[1] to intercept and debug network traffic on safari and iOS.
To add headers you can use the modify headers rule[2]
For iOS, they have thorough documentation[3] on how to setup the proxy and the ssl certificates. This is a one time setup and helps you not just intercept and inspect the traffic (even https) but also to make easy modifications using many common rules like the redirect rule, headers rule, modify response rule, etc.
I have the same issue all the time, when in the office at least i could share my laptops network connection (and thus routing for testing restricted apps) but now I’m dead in the water
Your laptop will still need to be on the same network to debug iOS traffic
I want to use Safari for my GraphiQL page testing but with the added security of an API key, I have no way to edit headers to allow access to the GraphiQL interface.
They also provide support for specifically targeting GraphQL requests inside the modify. request[4] and modify response rule.
Links:
[1] Desktop app - https://requestly.io/desktop
[2] Modify headers - https://docs.requestly.io/getting-started/modify-http-request-using-rules/modify-headers
[3] iOS setup - https://docs.requestly.io/desktop-app/how-to.../ios-interception
[4] Modify GraphQL requests - https://docs.requestly.io/getting-started/modify-http-request-using-rules/modify-ajax-response-rule/mock-graphql-api-response