I'd like to make a response with the "Access-Control-Allow-Origin" header been set all by myself, while it's seems messing up to figure out where the "HTTP_ORIGIN" parameter comes with the request is.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
This will get you the answer
here is example :
I'm using flask - 0.10.1, and the
HTTP_ORIGIN
seems to be one of the attrs of thisobject
Here is what I got from
print flask.request.environ
when handling a request: