receiving a random script in case of 404 error

Avatar

Avatar

Riten

Avatar

Riten

Riten

25-08-2020

Hello everyone,

I am facing a strange issue for the website(sorry, can't share the URL) - receiving a random script on pages in case of 404 error - which is not configured.

What could be the possible reason causing it? Any idea?

I am using AEM6.2 as instance..

 

Appreciate your help!

View Entire Topic

Avatar

Avatar

Ravi_Pampana

MVP

Avatar

Ravi_Pampana

MVP

Ravi_Pampana
MVP

25-08-2020

Hi,

 

Are you seeing the script in view source ? If so it is being added via code. 

 

If you don't see it in view source, search in the javascript files being included, the file might be getting added from a js file. you need to check all the 3rd party javascript files, one of them may be adding that if the page is 404.

 

In chrome we can search within static files by going to "Sources" tab 

 

Screen Shot 2020-08-25 at 3.46.24 PM.png

 

Hope this helps!