iview / iview/iview-admin

你们的工具方法util.ajax关于跨域问题

Open
#75 28 comments 0 reactions 0 assignees View on GitHub
helpful
Dominant language
Vue
Stars
16.4k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

原本我是想在webpack.dev.config.js添加proxy的配置,让后自己封装axios,可是技术菜也不知道哪里出了问题,让后看到你们处理ajax的封装,想问下这里有用代理来跨域,或者有什么跨域的方法,谢谢!

Contributor guide

No contributing guide indexed for this repository

Research direction

Read webpack.dev.config.js and the util.ajax implementation, then compare the reported cross-domain need with the existing axios-related setup. Clarify whether the requested outcome is a proxy configuration or another cross-origin approach; the issue is done only when that expected behavior and validation are specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.