当我请求应用程序接口时,在控制台Error: Request failed with status code 403 at createError (createError.js:16) at settle(settle.js:17) at XMLHttpRequest.handleLoad (xhr.js:62)中得到以下错误 这是我的componentDidMount()函数 import Reacttrack_list: [], }
当我尝试使用aiohttp:http://cfile2.uf.tistory.com/original/996D34465B12921B1AE97C下载这个链接时,我一直收到403个错误。我甚至试图添加引用,但仍然会出现同样的错误。这是我的代码:
async with aiohttp.ClientSession(headers={'Referer': 'https://tistory.com'}) as cs