from seleniumwire import webdriver # Import from seleniumwire
import requests as req
executable_path = 'xxxdriver'
driver = webdriver.Firefox(executable_path=executable_path)
headers = None
driver.get(f'xxxxxx')
for request in driver.requests:
if request.response:
if request.url == 'xxxxxx':
headers = request.headers
break
driver.close()