首页 > 前端页面跳转报错,查了查是跨域问题(tornado)

前端页面跳转报错,查了查是跨域问题(tornado)

XMLHttpRequest cannot load http://www.baidu.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.16.16.25:9988' is therefore not allowed access.

跳转出现问题 查了查说是跨域了
可是我也加header了

ef set_default_headers(self):

    self.set_header("Access-Control-Allow-Origin", "*")
    self.set_header("Access-Control-Allow-Headers", "x-requested-with")
    self.set_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
    

请加下如何解决


跨域是解决请求的,你说的也面条转是什么逻辑?

【热门文章】
【热门文章】