What if Selenium+Chromedriver headless cannot download the file?

if you don"t use headless, you can download it, but you can"t use headless. Is there any way to solve this problem?
versions are all up to date: Selenium:3.141 Chromedriver:2.45 Chrome: 71.0.3578.80

configuration is as follows:

chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("--headless")
    chrome_options.add_argument("--disable-gpu")
    prefs = {"profile.default_content_settings.popups": 0, "download.default_directory": "E:/File/"}
    chrome_options.add_experimental_option("prefs", prefs)
    browser = webdriver.Chrome(executable_path="./chromedriver.exe", chrome_options=chrome_options)
Jan.28,2022
Menu