我正在开发一个使用Vue js的应用程序。
根据我的设置,当设置发生变化时,我需要将一个变量传递给我的URL。
<!-- language: lang-js -->
$.get('http://172.16.1.157:8002/firstcolumn/' + c1v + '/' + c1b, function (data) {
// 一些代码...
});
但是当我的应用程序访问URL时,显示以下消息。
加载http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26失败:重定向从'http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26'到'http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26/'已被CORS策略阻止:请求的资源上没有'Access-Control-Allow-Origin'头。因此,不允许访问来源'http://localhost:8080'。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号