我有一个问题,我的API laravel在我的reactjs上运行时不能工作。当我检查时,我得到了失败的响应数据。但是,它在邮递员中工作得很好。这是我的代码 这是在reactjs中的:This code in ReactJs 这是在laravel API中的:this code in laravel API 我使用axios从我的API获取响应,并且我已经在我的L
当使用react本机调试器时,所有请求似乎都能工作,但在http://localhost:8081/debugger-ui/尝试使用chrome调试器时,我得到:
Access to XMLHttpRequestat 'https:<my_api_url>' from origin 'http://localhost:8081' has been blocked by CORS