[ Issue with Avatar google img loading] Referrer-policy Issue

So the correct way to config the next.config.js for the referrer-policy is:
Watch out the key

/** @type {import('next').NextConfig} */
const nextConfig = {
  async headers() {
    return [
      {
        source: "/:path*",
        headers: [{ key: "Referrer-Policy", value: "no-referrer" }],
      },
    ];
  },
};

module.exports = nextConfig;

instead of :

{
  key: 'Referrer',
  value: 'no-referrer'
}

by doing this, it should fix the problem with occasionally failed to load the image from google

1 Like

Can confirm, this was the fix for me too, for the google avatar image not rendering, instead showing the fallback “?” string. Thanks!