활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
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!
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
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
Hope this helps!
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
Hope this helps!
404 can occur at one of the 3 levels
1) CDN
2) Apache(Dispatcher)
3) AEM Publish
Do check , first at which level it is occurring and then it would be easy to debug. In case of AEM , you need to check for custom 404 handling.
Also check, if the script is included externally through Tag Managers(DTM, Launch, or GTM) at runtime.
Regards
Albin I
Check your 404.jsp, basePage.jsp or basePage.html scripts, there might be code unwanted code there.