Configuring the Whitelist

Confluence administrators can choose to allow incoming and outgoing connections and content from specified sources for use in the RSS macro, HTML Include macro and gadgets, by adding URLs to the whitelist. 

Confluence will display an error if content has been added that is not from an allowed source, and prompt the user to add the URL to the whitelist.

Application links are automatically added to the whitelist. You don't need to manually add them. 

Note: The HTML Include macro is disabled by default.

Add allowed URLs to the whitelist

To add a URL to the whitelist:

  1. Go to  > General Configuration > Whitelist
  2. Enter the URL or expression you want to allow.
  3. Choose the Type of expression (see below for examples of the types available).
  4. Choose Allow Incoming if you need to allow CORS requests (see below).
  5. Choose Add

Your URL or expression appears in the whitelist.

To test that your whitelisted URL is working as expected you can enter a URL in the Test a URL field.  Icons will indicate whether incoming and / or outgoing traffic is allowed for that URL. 

Expression Types

When adding a URL to the whitelist, you can choose from a number of expression types. 

TypeDescriptionExample
Domain nameAllows all URLs from the specified domain.http://www.example.com
Exact matchAllows only the specified URL.http://www.example.com/thispage
Wildcard ExpressionAllows all matching URLs. Use the wildcard * character to replace one or more characters.http://*example.com
Regular ExpressionAllows all URLs matching the regular expression.http(s)?://www\.example\.com

Allow Incoming

Allow Incoming enables CORS requests from the specified origin. The URL must match the format scheme://host[:port], with no trailing slashes (:port is optional). So http://example.com/ would not allow CORS requests from the domain example.com.

Disabling the whitelist

The whitelist is enabled by default. You can choose to disable the whitelist however this will allow all URLs, including malicious content, and is not recommended. 

To disable the whitelist:

  1. Choose the cog icon , then choose General Configuration
  2. Choose Whitelist.
  3. Choose Turn off whitelist.
  4. Choose Confirm

All URLs will now be allowed. We strongly recommend not disabling the whitelist. 

Last modified on Oct 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.