I'm currently running into a problem with the application I'm writing. I'm currently working in Angular 5 for the first time and I've been trying to update the assignee of an issue.
When I test my method in Postman it passes and the information gets changed, but when I try it in my application I get the following error:
'Method PUT is not allowed by Access-Control-Allow-Methods in preflight response.'
Differences in results (Google Chrome and Postman)
The status code I get back in my browser is 200. In Postman this is 204.
The 'X-AUSERNAME' in my browser is 'anonymous', but in Postman this is my own username. I also can't find an Authorization header in my request headers in my browser. I do however set the header before I make the request. This doesn't occur when I'm executing a GET request. The other headers I set seem to be missing in the request headers as well.
This picture is the code I'm using at this time
This is the request header from my browser
Anyone who ran into a similar problem?
Community moderators have prevented the ability to post new answers.
Dear @Bas Joosten,
best you ask this question again on the Developer Community.
Thanks for understanding
Thomas
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.