from flask import flask from flask import request print(request.environ.get('HTTP_ORIGIN', 'default value')) request.environ['SERVER_NAME'] print(request.host)