import cgi
form = cgi.FieldStorage()
print('Content-Type: text/html;charset=utf-8')
print('Access-Control-Allow-Origin:*')
print() 
print(form)
POST data to CGI file using XMLHttpRequest causes BadHeader