Forbidden - 403

Avatar

Avatar

Heena06

Avatar

Heena06

Heena06

12-09-2020

Hi,

 

Getting below error msg while clicking on the navigation option provided, it should redirect to href page.

Please suggest what could be the reason.

 

Thanks,

Heena

 

Heena06_0-1599910048201.png

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Theo_Pendle

MVP

Avatar

Theo_Pendle

MVP

Theo_Pendle
MVP

12-09-2020

 Hi @Heena06,

The issue is that the URL you are trying to visit does not have the an extension (eg: .html or .json).

What do you mean by "the navigation option provided"? 

Answers (3)

Answers (3)

Avatar

Avatar

tatvam

Avatar

tatvam

tatvam

14-09-2020

Since you are getting 403 due to default GET servlet, this means that the URL is not mapping to a resource. It is possible the "provided navigation option" was generated wrong. It is possible the trailing / is to blame and could be checked first. Additionally see if the servlet (as a component) and the bundle are active.

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

13-09-2020

@Heena06 

There seems to be issue with the request URL.
Are you using the shorten URL using etc/map? Then remove the last slash and hit the sling match path. 

Can you provide more details on this?

Thanks,
Nikhil

Avatar

Avatar

abhilakhpatre1

Avatar

abhilakhpatre1

abhilakhpatre1

12-09-2020

Hi @Heena06 ,

 

There should not be a trailing slash while calling the Resource.

 

When Sling tries to resolve the same path, it won't be able to find the script to load. Please use any extensions .html, .json or .model.json etc. It will render the script based on extension or selectors match.