Issue
While creating a support ticket on the Mendix Support page, when attaching a file through SendSafely, the following error message might arise:
Could not render widget 'SupportPortal.SendSafely.sendSafelyDropzone1'In the browser's console, you might also see the error message below:
Refused to load the script 'https://gateway.zscloud.net/_sm_ccik?_ordtok=Bbk3WVZKmsZFMk4Vr6q7lNNNWs&_sm_rid=NBHVMmtQRWSMQtB7J5s5tBt6gRvSjHMm5ZJWg0gvSjHMm5ZJWg0g&_orig_url=https://mendix.sendsafely.com/js/external/SendSafelyDropzone.min.js'
because it violates the following Content Security Policy directive: "script-src https://code.jquery.com https://mendix.sendsafely.com 'self' 'unsafe-inline' 'unsafe-eval' https://*.mendix.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.Environment
Zscaler
Cause
The SendSafely domain has been blocked by the user's company firewall.
The error message is related to the Content Security Policy (CSP) of the website the user is trying to load a script from. CSP is a security feature that helps prevent certain types of attacks, such as Cross-Site Scripting (XSS) and data injection attacks, by specifying which sources of content are allowed to be loaded on the webpage.
In this case, the CSP directive script-src specifies which sources are allowed to load scripts. The directive includes the following sources:
- https://code.jquery.com
- https://mendix.sendsafely.com
-
'self'(which means the same origin as the webpage) -
'unsafe-inline'(which allows inline scripts) -
'unsafe-eval'(which allows the use of eval() in scripts) - https://*.mendix.com
However, the script that is trying to be loaded is from https://gateway.zscloud.net, which is not included in the script-src directive. As a result, the browser refuses to load the script because it violates the CSP.
Solution/Workaround
The IT team needs to whitelist SendSafely. Specifically, the URLs provided below should be whitelisted.
- https://mendix.sendsafely.eu
- https://static-mendix.sendsafely.eu
- https://sendsafely-dual-region-eu.s3-accelerate.amazonaws.com
For additional information, refer to the Sends Safely Help Center Article:
Blocked URLs: How to Whitelist SendSafely
Alternatively, the user can request tickets by going to the link below:
https://ticket-support.mendix.com/p/Alternative
On this page, SendSafely is disabled, resulting in tickets being created without attachments. The user can add attachments later by navigating to the ticket under My Activities and posting an update within the ticket.
Internal information related
- 228655, 231964
- C05EVGYNX9R/p1726759988872039
0 Comments