can someone guide me on how to resolve the issue screenshot attach below? enter image description here
You are encountering this when you are sending the request to the server because you are not sending the header with the request. You can change the origin header. This solution works most of the time.
Origin: http://localhost
You can also go to the AAD App registration and make sure that you add the redirect url Over the Single page application. Follow the steps here.