Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

浏览器禁止了非安全域的 navigator.clipboard 对象 #11879

Closed
bwangll opened this issue Mar 26, 2024 · 4 comments · Fixed by #11942
Closed

浏览器禁止了非安全域的 navigator.clipboard 对象 #11879

bwangll opened this issue Mar 26, 2024 · 4 comments · Fixed by #11942
Labels
area/Nacos console Related to Nacos consle contribution welcome kind/bug Category issues or prs related to bug.

Comments

@bwangll
Copy link

bwangll commented Mar 26, 2024

navigator.clipboard.writeText(value);

clipboard只有在安全域名下才可以访问(https、localhost),在http域名下只能得到undefined;

@bwangll bwangll changed the title 浏览器静止了非安全域的 navigator.clipboard 对象 浏览器禁止了非安全域的 navigator.clipboard 对象 Mar 26, 2024
@KomachiSion
Copy link
Collaborator

具体的影响是?

@bwangll
Copy link
Author

bwangll commented Mar 29, 2024

页面上无法复制命名空间id

@bwangll
Copy link
Author

bwangll commented Mar 29, 2024

具体的影响是?

复制失败并且没有提示,具体在配置页面,服务页面都存在这个情况

@KomachiSion KomachiSion added area/Nacos console Related to Nacos consle kind/bug Category issues or prs related to bug. contribution welcome and removed status/need feedback labels Apr 1, 2024
@hnyyghk
Copy link
Contributor

hnyyghk commented Apr 10, 2024

@hnyyghk will solve it@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Nacos console Related to Nacos consle contribution welcome kind/bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants