1、先创建 GlideUrl,添加进去url后再addHeader添加请求头;
GlideUrl glideUrl = new GlideUrl(url, new LazyHeaders.Builder()
.addHeader("Authorization", "ToKen")
.build());
2、在load中把url替换为glideUrl即可; Glide.with(context) .load(glideUrl) .placeholder(R.color.font_black_6) .error(R.mipmap.ic_launcher) .crossFade() .into(imageView);