cdn引入zui3的js文件 拨错跨域错误
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 678
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 7
Description
描述 (Description)
按照官网文档 引入ZUI3的js文件时 <script src="///cdn.bootcdn.net/ajax/libs/zui/3.0.0/zui.js" crossorigin="anonymous"></script>
浏览器报错 Access to script at 'http://cdn.bootcdn.net/ajax/libs/zui/3.0.0/zui.js' from origin 'http://***.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
请问如何解决
期望 (Expectation)
能正常引入cdn的js文件 不报错
结果 (Result)
引入cdn的js文件 报错
软件版本 (Software version)
ZUI3.0.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error with the documented ZUI 3.0.0 CDN script URL and the crossorigin="anonymous" attribute in a browser. Check whether the failure is in the published CDN resource or its delivery configuration; done means the documented script loads without a CORS error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100