from flask import request request.headers.get('your-header-name')
from flask import request import sys #for printing in log console print(request.headers, file=sys.stderr)