title: How can I retrieve a file using WKWebView?
body: <p>There is a file (CSV) that I want to download. It is behind a login screen on a website. I wanted to show a <code>WKWebView</code> to allow the user to log in and then have the app download the file after they had logged in.</p>
  
  <p>I've tried downloading the file outside of <code>WKWebView</code> after the user has logged in to the website, but the session data seems to be sandboxed because it downloads an html document with the login form instead of the desired file.</p>
  
  <p>I've also tried adding a <code>WKUserScript</code> to the <code>WKUserContentController</code> object, but the script doesn't get run when a non-HTML file is loaded.</p>
  
  <p>Is there a way for me to access this file while allowing users to log in via the <code>WKWebView</code>?</p>