How to allow access under /apps?

Avatar

Avatar

pankajc23172579

Avatar

pankajc23172579

pankajc23172579

08-12-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vish_dhaliwal

Employee

Avatar

Vish_dhaliwal

Employee

Vish_dhaliwal
Employee

08-12-2019

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

Answers (3)

Answers (3)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

23-12-2019

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.

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

08-12-2019

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

Avatar

Avatar

ArpitVarshney

MVP

Avatar

ArpitVarshney

MVP

ArpitVarshney
MVP

08-12-2019

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