Attention: Experience League Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.
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.