这个功能有什么用?

时间:2016-08-16 07:06:29

标签: python

功能如下:

def cors_handler(request, response):
    response.set_header("Access-Control-Allow-Origin", "*")
    response.set_header("Access-Control-Allow-Headers", "Content-Type")
    response.set_header("Access-Control-Allow-Methods", "POST")
    response.set_status(204)
    response.send("")

0 个答案:

没有答案