Expand my Community achievements bar.

SOLVED

How to allow access under /apps?

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

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

Avatar

Community Advisor

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

Avatar

Community Advisor

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

Avatar

Community Advisor

Hey @pankajc23172579,

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.