If your Spotfire Web Player environment is open to external users you can replace the
default error messages that are displayed for the Spotfire Web Player to prevent users
from injecting user controlled error messages through a URL.
To modify this behavior you must create a new error message file and then modify the
configuration file.
After you make these changes, any error that occurs in the Spotfire
Web Player will be redirected to this static error page.
Note: If you make this change, users will not receive any details or information about
the error.
Adding a Custom Error web Page
1 In web.config update the section system.web/customErrors to: <customErrors mode="On" defaultRedirect="~/ExampleError.html" />
2 Create a custom error web page. For example,
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Error - TIBCO Spotfire Web Player</title> </head> <body> <h1>TIBCO Spotfire Web Player</h1> <div>An error occurred.</div> <div> Contact the administrator at (123) 456-7890 or <a href="mailto:admin@mycompany.com">admin@mycompany.com</a>. </div> <div style="margin-top: 10px; font-size: 125%;"> <a href="Library.aspx">Back to start page</a> </div> </body> </html>
3 Save the web page to <web-root>\App_Data\ using a name that matches the name in
the <customErrors> setting, for example, ExampleError.html.
Comments
Post a Comment