Javascript file shows 403 error | Community
Skip to main content
June 11, 2021
Solved

Javascript file shows 403 error

  • June 11, 2021
  • 2 replies
  • 2494 views

I am trying to modify a javascript file in the clientlibs folder in the publisher instance for debugging purpose. After I add a console log and saved the file. it is showing 403 error in the page. The other JS files included to the page are loading without any issue and only the modified file is showing the error. When I try to access the file URL directly also, it is showing like I don't have the permission to access the file. 

 

Anything I need to do from the AEM side after modifying a client library file ?

 

I am actually new to AEM and so it will be really helpful if someone can point me in the right direction. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ritesh_Mittal

Hi @alwinaugustinofficial ,

 

It looks like permission issue, is it for logged-in user or anonymous (everyone)?. Are you are using webpack to build the java script library?

To debug, just open CRXDE in another tab and login with admin user and then refresh your website page and check if the java script is loading fine.

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 11, 2021

Hi @alwinaugustinofficial ,

 

It looks like permission issue, is it for logged-in user or anonymous (everyone)?. Are you are using webpack to build the java script library?

To debug, just open CRXDE in another tab and login with admin user and then refresh your website page and check if the java script is loading fine.

June 11, 2021
Thanks for the help Ritesh. Actually there was a syntax error there in the JS file and when I tried to rebuild clients lins, it was showing error. Now I fixed the error and everything is working fine. I never imagined that it will show 403 if there is an error in JS file. Thanks a lot for your help.
Ankur_Khare
Community Advisor
Community Advisor
June 12, 2021

Hi,

 

You don't have permission to modify any file on publish instance.

Please get relevant access on publish instance and try again.