How to add HTTP headers in request globally for iOS in wkwebview with swift

How to add HTTP headers in request globally for iOS in wkwebview with swift

request.addValue only works for the initial url but not for the subsequent URL's.Is there any way?

I'm not sure to understand what the problem and pain point is. I probably miss something.

You have to build a request of each URL. And add header. So there is an extra instruction to add after the init. Is that the problem ?

Could you show the code you have today and explain on it what you would like to do ?

Would a func to create the request (from URL) and setting the header be a solution ?

How to add HTTP headers in request globally for iOS in wkwebview with swift
 
 
Q