ionic-team/ionicons

ion icons not displayed if they are hosted on a server requesting auth

開放

#640 建立於 2018年11月23日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (2,083 個分叉)batch import
help wantedtype: bug

倉庫指標

星標
 (17,256 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I'm submitting a:

[x] bug report [ ] feature request [ ] support request

ionicons version:

 ionicons v4.4.6

Current behavior: Currently the icon class gets the svg content without sending the cookies in microsoft edge on desktop and in every navigator on iPad. By default, fetch won't send or receive any cookies from the server, resulting in unauthenticated requests if the site relies on maintaining a user session (to send cookies, the credentials init option must be set). This means that those svgs can't be hosted on a server requesting auth.

Expected behavior: I would expect that a credentials init option is set to same-origin or include.

If there are cases I haven't thought of, please let me know. I'd also be happy with a config option to change the value.

貢獻者指南