Let me start this with, I do not know python, I\'ve had maybe 1 day going through the python tutorials. The situation is this. I have an angular app that has a python app host
For Python with CGI, I found this to work:
print '''Access-Control-Allow-Origin: *\r\n''', print '''Content-Type: text/html\r\n'''
Don't forget to enable CORS on the other side as well, e.g., JavaScript jQuery:
$.ajax({ url: URL, type: "GET", crossDomain: true, dataType: "text", etc, etc