我从昨晚开始就一直在编写我的Javascript代码,但是,我似乎不能让它工作,它应该从连接到我的Lambda函数和DynamoDB的API中拉出访问。它给了我以下错误: (index):1 Access to fetch at 'api link here ' from origin 'origin here' has been blocked by CORSIf an opaque response serves your needs, set the request's mode to 'no
我试图用Rust构建一个简单的后端,但我经常遇到CORS错误。XMLHttpRequest at 'http://127.0.0.1:3002/auth' from origin 'http://localhost:3000' has been blocked by CORS] let app = move || App::new().configure(routes);