Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to create a servlet to avoid CORS errors in AEM 6.3

jakeg58042588
Level 3
Level 3

Hey AEM friends, here is another tutorial. This time on how to avoid CORS errors (when using AJAX) by creating a servlet. Hope you enjoy and as always let me know if you have questions or feedback. Thanks for watching.

How to create a servlet to avoid CORS errors in AEM 6.3 - YouTube

4 Replies
Radha_Krishna_N
Level 4
Level 4

By creating servlet are we not allowing every request to be processed by the AEM Instance, which will put more load on the server?

edubey
Level 10
Level 10

I assume, in that case you are caching response at dispatcher. which should be fine.

Correct me, if my understanding is wrong on your question.

jakeg58042588
Level 3
Level 3

Not sure I understand your question Radha. The node server will process every request, unless the servlet is cached by dispatcher, as edubey mentioned.