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.
This will get you the answer
from flask import request
...
print(request.environ.get('HTTP_ORIGIN', 'default value'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With