A customer recently asked us a question that is probably on the minds of many dotCMS teams: now that the CONTENT_APIS_ALLOW_ANONYMOUS setting defaults to NONE, can anonymous visitors still get at our content and our files? The answer has two parts, and the difference between them is worth understanding before you rely on either.
NONE is now the default
CONTENT_APIS_ALLOW_ANONYMOUS defaults to NONE from dotCMS 26.11.06-03, and from 25.07.10_lts_v27 on the 25.07 LTS line. Earlier releases, including the 24.12 LTS line, default to READ.
On dotCMS Cloud, the Latest and Standard evergreen tracks already run the new default, and the Trailing track has it from the December 2, 2026 maintenance window.
If your environment sets CONTENT_APIS_ALLOW_ANONYMOUS explicitly, that value still applies.
The short answer
With the setting at NONE, dotCMS rejects unauthenticated requests to the content APIs with a 401, even for content that the CMS Anonymous role is allowed to view.
Files served from /dA/, /contentAsset/ and /dotAsset/ are not covered by that setting. A published file that CMS Anonymous can view is served to anyone who has its URL.
For files, the control is View permission (or unpublishing), not the API setting.
How anonymous access works in dotCMS
Every visitor who is not logged in is treated as the CMS Anonymous role. The permissions you set on content, files and folders decide what that role may view. If CMS Anonymous has View on something and it is published, a visitor with no account can see it on your public site.
Two things are layered on top of that model, and they are enforced in different places:
The content APIs have an extra gate that decides whether an unauthenticated caller may use them at all. This is a product decision we made because the response can contain user information and content metadata that you want to keep private.
File delivery relies on the permission on the file itself and nothing else.
The rest of this post explains each layer.
The content APIs and CONTENT_APIS_ALLOW_ANONYMOUS
The setting is configured as CONTENT_APIS_ALLOW_ANONYMOUS, and in container or environment-variable form it carries the DOT_ prefix: DOT_CONTENT_APIS_ALLOW_ANONYMOUS. They are the same setting.
When it is set to NONE, dotCMS rejects any unauthenticated request to the APIs that return content. That covers the content and search APIs, GraphQL, tags, languages, content types, widgets and content relationships. Anonymous workflow actions need WRITE. The page and navigation APIs always require credentials, whatever this setting says. The rejection happens at the authentication step, before dotCMS looks at permissions on the content, so a request with no credentials receives a 401 even when CMS Anonymous has View on what it asked for.
A useful way to think about it: permissions decide what an authenticated user is allowed to see, while this setting decides whether an anonymous caller gets to ask at all.
The same release added SCRIPTING_APIS_ALLOW_ANONYMOUS, which defaults to false, so the /api/vtl and /api/js scripting endpoints follow CONTENT_APIS_ALLOW_ANONYMOUS too. Set it to true if you want your own published scripting endpoints, such as one behind a sitemap, to stay open to anonymous callers while the content APIs stay closed.
Two practical notes:
Check your integrations first. If a headless front end or another system calls these APIs without credentials, it will start receiving 401 responses once NONE is in effect. Give it an authenticated identity, for example an API token. If it uses Basic authentication, send the token as the password: ALLOW_BASIC_AUTH now defaults to JWT_TOKEN, which rejects a real username and password. If an integration breaks, you can set CONTENT_APIS_ALLOW_ANONYMOUS back to READ while you give it a token, but we don't recommend leaving it there.
Test the endpoints you depend on. The setting applies to the endpoint families listed above. For any other API endpoint you rely on, send an unauthenticated request to your own instance and confirm the behavior you expect.
Assets under /dA/, /contentAsset/ and /dotAsset/
Files are served by the file-asset servlet, not by the content APIs, and that servlet does not consult CONTENT_APIS_ALLOW_ANONYMOUS. Instead it checks the requesting user's permission on the file. A file with View permission for CMS Anonymous is therefore served to anyone who has the URL, whatever the API setting says.
Three details matter:
Anonymous visitors are only ever served the published version of a file. A working or unpublished version is never returned to them.
The same rule applies to files rendered on your public pages. The API setting does not restrict front-end delivery.
To make a file unavailable to anonymous visitors, remove View for CMS Anonymous on the file or on its folder, or unpublish the file.
How the two paths differ
Quick reference
Scenario | Result |
|---|---|
Anonymous call to a content API, setting is NONE, CMS Anonymous has View on the content | 401, before permissions are checked |
Authenticated call to a content API | Permissions decide what is returned |
Anonymous request to a file URL, file is published, CMS Anonymous has View | File is served |
Anonymous request to a file URL, CMS Anonymous does not have View on the file | File is not served to anonymous visitors |
Anonymous request for a file that exists only as an unpublished or working version | Never returned |
Public page that embeds a file CMS Anonymous can view | File displays; the API setting does not restrict front-end delivery |
Common questions
I set the API setting to NONE. Are my files now private?
No. The setting governs the content APIs only. A published file that CMS Anonymous can view is still served by URL.
Will NONE break my public website?
The setting does not restrict front-end delivery, so pages and the assets on them are not affected by it. Anything that calls the content APIs without credentials, such as a headless front end, will be affected. So will a /api/vtl or /api/js endpoint your site relies on, such as a sitemap, unless you set SCRIPTING_APIS_ALLOW_ANONYMOUS to true.
Do REST endpoints in my own plugins follow this setting?
Only if they authenticate through the standard dotCMS WebResource check and allow anonymous callers there. An endpoint that does its own authentication, or none, is not affected. Send an unauthenticated request to each plugin endpoint you depend on and check the result.
How do I make a file visible only to logged-in users?
Through permissions on the file or its folder, as described above. The API setting has no effect on files.
Can an anonymous visitor see a draft version of a file?
No. Anonymous visitors are only served the published version.
Which is the right name, CONTENT_APIS_ALLOW_ANONYMOUS or DOT_CONTENT_APIS_ALLOW_ANONYMOUS?
Both refer to the same setting. The DOT_ form is the environment-variable spelling.
A checklist for your own site
NONE is now the default, so check your integrations: anything that calls the content APIs without credentials needs an API token.
Identify folders and files that hold material that should not be public.
For each, check whether CMS Anonymous has View on the file or its folder.
Where the material should not be public, remove that View or unpublish the file.
Test from outside your network, without logging in, as shown below.
To test the API gate, request an endpoint you use without credentials and print the status code:
curl -s -o /dev/null -w '%{http_code}\n' https://<your-host>/api/<an-endpoint-you-use>With NONE set, a content API endpoint should return 401. To test a file, request its URL the same way, without logging in:
curl -s -o /dev/null -w '%{http_code}\n' https://<your-host>/dA/<file-identifier>A file that CMS Anonymous can view and that is published will be served; any other file will not be served to an anonymous visitor.
Questions?
If a question like this came up for you, it probably comes up for other teams too, and we would like to hear it. If you are unsure how your own configuration behaves, contact dotCMS support or your account team with the endpoint or URL in question, and we will help you confirm it.