Forum Discussion
b75b497b2d359588f6a78d
Feb 08, 2024Copper Contributor
Unable to send emails through an add-in due to Content Security Policy (CSP)
Hello, I manage an Office Add-in that helps aids in user productivity when writing emails. Part of the functionality of this plugin also includes adding content to the body of the emails. However, the source of the content is external which seems to trigger the content security policy set by Microsoft and prevents the email from being sent. Here is what the error I get when looking at DevTools console:
However, the same add-in works as expected in the Outlook for Mac client. Additionally, despite the content (such as images) being blocked, it is still being rendered in the compose window normally.
I've also noticed this intermittent error when it comes to CSP which I'm unsure if it is related or not:
Has anyone run into this and if so, any tips on how to resolve it? Thanks in advance.
- MasterCheechCopper Contributor
b75b497b2d359588f6a78d We are also running into this same issue with our Outlook Add-in It we get these same types of errors for calls we make to a couple of our domains. What's strange is this works for some of our users and not others.
Did you ever find a solution to this problem?