Show TOC

Customizing the Favicon and the Cross-Domain Policy FileLocate this document in the navigation structure

Use

The Web container of AS Java supports both a shortcut icon for the websites, known also as a favicon, and the cross-domain policy file.

The favicon appears in the Address bar of the Web browsers and can be unique for each website.

You can use the default shortcut icon for a particular website, or change it with your own. The favicon.ico file has a standard size of 16x16 pixels and resides in the root directory of the website. You can manage the location of the icon and the icon itself in the HTML code of the website. If you change the default favicon, it will become available for all websites that do not have explicitly specified their own icon.

SAP's Web Container supports the cross-domain policy file. This file allows a Web client, such as Adobe Flash Player, to handle data across multiple domains. The Web clients send requests to the configuration of the globally defined crossdomain.xml file. The configuration grants permissions to the policy files at application level, that is the application themselves are authorized to access the needed data across multiple domains. For example, if you want your Web client to load data from a remote domain, this remote domain has to provide such a policy file with all trusted domains listed inside. If the source domain of your Web client in among these trusted domains, the Web client will continue with its request. The crossdomain.xml file that AS Java provides delegates definitions to individual applications and this allows you to add specific configuration in your application.

Procedure

Customizing the favicon

To customize the favicon of AS Java, you have to deploy a custom application with context root favicon.ico . This application provides the needed favicon content to requests of the type http://<host>:<port>/favicon.ico