Hi,
I'm developing a service that returns a sign-embedded URL for the front end using the .NET (C#) SDK
var docuSignClient = await CreateClientAsync();
var envelopesApi = new EnvelopesApi(docuSignClient);
var recipientViewRequest = new RecipientViewRequest
{
AuthenticationMethod = "none",
ClientUserId = recipientId.ToString(),
ReturnUrl = returnUrl,
UserName = recipientName,
Email = recipientEmail,
FrameAncestors = new List<string> { "http://localhost:7777", "https://apps-d.docusign.com" },
MessageOrigins = new List<string> { "https://apps-d.docusign.com" }
};
var viewUrl = await envelopesApi.CreateRecipientViewAsync(_docuSignConfiguration.APIAccountId, envelopeId.ToString(), recipientViewRequest);
return viewUrl.Url;However, when I use the returned URL with DocuSignJS Focus View, I get the following error:
Refused to frame 'https://apps-d.docusign.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
I've already set the FrameAncestors for the recipientViewRequest, but I'm not sure what I’m missing.
Could someone help me understand why this is happening? Below is my code, and I’d really appreciate any insights into what I might be doing wrong.
Thank you!
Back to Docusign.com
