Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Avatar

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

Avatar

Level 10

Thank you for the great community content!

Avatar

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?

Avatar

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.

Avatar

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.