Skip to content

Commit

Permalink
added new headers in getHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
carvalholuigi25 committed Oct 31, 2023
1 parent 4c2f8f4 commit 408f2ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/[locale]/utils/authUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ const controller = new AbortController();
const signal = controller.signal;

export function getHeaders() {
return {
return new Headers({
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json; charset=utf-8',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Accept, Authorization'
};
});
}

export async function doLogin(e: any, username: string, userpass: string) {
Expand Down

0 comments on commit 408f2ab

Please sign in to comment.