Outlook add in form post issue
I am working on outlook add-in using Angular 10. Have an use case to do form post with body parameter. The body parameter getting passed without any issue from web outlook but the same it is not working from outlook client. A quick help on this will be a great help. Attached form post code that we are doing for your reference.
let form = document.createElement('form');
form.setAttribute('id', 'dynForm');
form.setAttribute('target', '_blank');
form.setAttribute('action', ${uri.origin}${uri.pathname}
);
form.setAttribute('method', 'post');
form.setAttribute('enctype','application/x-www-form-urlencoded');
let input = document.createElement('input');
input.setAttribute('type', 'hidden');
input.setAttribute('name', 'auth');
input.setAttribute('value', auth);
form.appendChild(input);
document.body.appendChild(form);
form.submit();