Schemes allowed for url opening

Schemes allowed for url opening

Starting from Datafari 7

By default in Datafari, in the results page, when you click on a title of a result, it will contact the Datafari webapp and then direct you to the document direct url. Be aware that for security reasons, we only allow a whitelist of document url schemes by default. The schemes allowed by default are :

  • http

  • https

  • file

  • datafari

It means that if the url of your document is https://mybeautifulsite.com/index.com or file:///myshare/my_file.txt for example, the URLs are allowed.

But if you have a specific data source with a particular schema like mycustomapp://mypage/mydoc.txt Datafari will send you a page with error code 400.

It is possible to add custom schemes into datafari.properties, simply enter your schemes into this property :

ALLOWED_PROTOCOLS_URL=

Add as many schemes that you want, just type a comma between each schema. For example if you want to add myscheme and anotherscheme the property will be :

ALLOWED_PROTOCOLS_URL=myscheme,anotherscheme