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

Avatar

Avatar

jakeg58042588

Avatar

jakeg58042588

jakeg58042588

21-12-2017

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

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

21-12-2017

Thank you for the great community content!

Avatar

Avatar

Radha_Krishna_N

Avatar

Radha_Krishna_N

Radha_Krishna_N

27-12-2017

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

Avatar

edubey

Avatar

edubey

edubey

27-12-2017

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

Avatar

jakeg58042588

Avatar

jakeg58042588

jakeg58042588

02-01-2018

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