This conversation has been locked due to inactivity. Please create a new post.
SOLVED
On EC2 instance I am giving wrong credentials for Basic Auth but getting 200 code and with same scenario while doing on local machine it is giving unauthorized exception
I'm not sure to what server you are accessing to, but looks like it's not AEM instance(which runs by default on port 4502) - unless you have configured custom port. Please check with the proper vendor to which you are trying to access server, that should solve your problem.
I'm not sure to what server you are accessing to, but looks like it's not AEM instance(which runs by default on port 4502) - unless you have configured custom port. Please check with the proper vendor to which you are trying to access server, that should solve your problem.