Replies: 1 comment
-
Update: But even after adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I am trying to get a SVG image from multiavatar like (https://api.multiavatar.com/qwerty.svg) but I got following errors:
coil3.network.HttpException: HTTP 403
Some discussions on StackOverflow fix similar issue by adding custom header onto the request like:
.setHeader("User-Agent", "Mozilla/5.0")
(source)I already checked this discussion about header on Coil3 but I cannot find the way to add header on ImageRequest (neither NetworkHeaders class or httpHeaders field are available, maybe they are bound to OkHttp client).
Do you have any idea how to deal with it? (maybe creating a custom Ktor client including the header but it is not convenient)
Beta Was this translation helpful? Give feedback.
All reactions