Referrer header not included in stylesheet request inside iframe

305 views Asked by At

I'm trying to load in an external font (using the font provider's hosted CSS) from inside a sandboxed iframe. The font provider seems to be authorizing whether the font can load or not based on the contents of the Referrer header. However, when the request is made from inside the iframe, that header is not present (according to Chrome's devtools). Setting referrerpolicy="origin" on the <iframe> element doesn't seem to change anything. Tested in Chrome and Firefox.

Do I need to add a special attribute to my <link> tag, too? Is there something else I'm missing?

0

There are 0 answers