easysoft / easysoft/zui

cdn引入zui3的js文件 拨错跨域错误

Open
#238 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.