报错: Access to XMLHttpRequest at ‘http://127.0.0.1:5000/markdownlang/‘ from origin ‘null‘ has been bl
在用ajax时,出现以上的跨域请求的报错(使用python的flask搭建的后台):报错代码:fromflaskimportFlask,[email protected]("/markdownlang/",methods=["post"])defgetMarkdownLang():returnrender_template('result.html')解决方案:在服务端加上响应头,简