سلام دوستان من یک کد در vueCli که این کد منه:
  const config = {
                    headers: {
                        'Content-Type': 'application/x-www-form-urlencoded',
                        'Accept': "application/json"
                    },
                };
                window.axios.post(`http://dashboard.learnuni.ir/api/v۱/city/` , {
                    'cityNameFa': this.$route.params.city
                }, config)
                    .then(response => this.tours = response.data);ولی این اررو میده
Access to XMLHttpRequest at 'http://dashboard.learnuni.ir/api/v۱/city/' from origin 'http://localhost:۸۰۸۰' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
کسی میدونه چیکار کنم؟
میگه که هیچ جوره به Access-Control-Allow-Origin دسترسی نداره ، بهتره که وقتی دارید پارامتری رو پاس میدید به جای کاما از + استفاده کنید
به headers گزینه زیر رو اضافه کنید:
"Access-Control-Allow-Origin": "*",....
                    headers: {
                        'Content-Type': 'application/x-www-form-urlencoded',
                        'Accept': "application/json",
                        'Access-Control-Allow-Origin': "*"
                    },آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟