Remote server seeing iPadOS web app as iPadOS 10

I have an Xcode iPadOS WebKit app in which the remote web site is detecting the OS as iPadOS 10 from my app. The test iPad is running iPadOS 17.1.2. In regular Safari on the same iPad, the site works fine. I was trying to find a way to hard set the iPadOS version but I can not seem to track down the code for this to add to my app. Can the version of the web browser also be hard set for a WebKit app? Thanks!

For those that may see this in the future, I found a great open-source iOS lockdown browser SEB/Safe Exam Browser. I have used the macOS version of SEB in the past and this GitHub URL has the SEB unified macOS/iOS/iPadOS code. This has the ingredients of being a great working example to learn from. (https://github.com/SafeExamBrowser/seb-mac)

Also for SEB I ended up utilizing the below agent string for the site I was locking down: Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/17.0 Mobile/11D257 Safari/9537.53

Remote server seeing iPadOS web app as iPadOS 10
 
 
Q