File Upload Fails in Production Environment but works in Development – How to Debug?
I’m working on an Angular application with a file upload functionality. In the development environment, uploading files using FormData works fine. However, in the production environment, where the Angular app is deployed on a server with the domain abc.com and the file upload service is on bcddomain.com, it’s not working. Even using Postman, the file upload to the production URL fails. How can I determine if this issue is related to the frontend (Angular) or the backend (Java)?
Spring does not see the values coming from Angular
I want to perform an authentication using Java and Angular. The Angular part returns correctly from the browser. but I’m having trouble passing it to java and the values are getting null. Is it due to a spring annotation? Or am I crushing the code when sending it?
It is mentioned in some places that crossorigin causes such an error. But I couldn’t find anything detailed about it.