本来按照网上的文章修改的跨域问题,结果还是不行。经过摸索修改如下:
def end_headers(self):
self.send_header('Access-Control-Allow-Origin', 'http://localhost:8080')
self.send_header('Access-Control-Allow-Credentials','true')
SimpleHTTPRequestHandler.end_headers(self)
解决问题
网友评论