Skip to main content
Dec 8, 2019 5:46 PM UTC
Solved

How to allow access under /apps?

Hi everyone,

Recently I've added /filter01 { /type "allow"  /url "/apps/*" } but the browser still gives me 404 error on dispatcher.

Am I doing something wrong?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vish.dhaliwalAccepted solution
Adobe Employee
Dec 8, 2019 9:02 PM UTC

Hello,

The paramater to allow access seems correct. But you need to check what other filters you have above of this filter. The basic rule is to deny access to everything, then allow access to specific requests.

/0001 { /type "allow" /url "/apps/*" }

Check the dispacther debug logs. Can you access it directly on author/publish instance?

Regards,

Vishu

4 replies

vish.dhaliwalAdobe EmployeeAccepted solution
Adobe Employee
Dec 8, 2019 9:02 PM UTC

Hello,

The paramater to allow access seems correct. But you need to check what other filters you have above of this filter. The basic rule is to deny access to everything, then allow access to specific requests.

/0001 { /type "allow" /url "/apps/*" }

Check the dispacther debug logs. Can you access it directly on author/publish instance?

Regards,

Vishu

Translate
ArpitVarshney
Community Advisor
Community Advisor
Dec 9, 2019 3:08 AM UTC

Hi Pankaj

In addition to above, Can you make sure whether the appropriate user (anonymous or logged In user) has sufficient(read) access to /apps directory through /useradmin console?

Regards,

Arpit Varshney

Translate
Ankur_Khare
Community Advisor
Community Advisor
Dec 9, 2019 7:21 AM UTC

Is your request coming to cq instance if yes could you please check the cq logs ..

Translate
Ankur
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Dec 23, 2019 5:27 PM UTC

Hey @17345362,

The answer to your problem will be:

1. Dispatcher: /0069 { /type "allow" /url "/apps/*" }

2. Allow permissions for the "anonymous" and "everyone" user groups have READ permissions to the /apps/* path.
3. Read ./crx-quickstart/logs/error.log (you should see very valuable information here).

I hope whatever you are trying to achieve is for non-production, testing, and educational purpose only.

Can you please explain why you are trying to expose the /apps folder structure to the public? It's best practice not to expose the /apps folder because security reasons recommended by Adobe.

Translate