nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

E-mail without text when using font via css @import

Open jsvini opened this issue 10 years ago • 3 comments

This is the message in Nylas 0.3.32 - Windows (Gmail).

image

And this is the same message in gmail.com:

image

You can see message the source code in: http://get.invisionapp.com/weekly-digest-51 The font is Open Sans via Google Fonts

jsvini avatar Dec 23 '15 19:12 jsvini

Thanks for reporting this! This appears caused by the CSP (Content Security Policy) placed on messages.

mbilker avatar Dec 24 '15 08:12 mbilker

Good find! I think we need to add font-src: unsafe-inline to the the app's global CSP. I'll see if I can reproduce and fix this.

bengotow avatar Dec 28 '15 19:12 bengotow

This is fixed in acd960d611c050ec3af9f9e480b7fc7ee5ea7ff3—I think it's actually safe for us to allow CSS from any domain to be loaded into emails.

bengotow avatar Dec 28 '15 19:12 bengotow