Skip to content

Commit

Permalink
fix: adding cors header manually
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Jun 26, 2023
1 parent 15dd6df commit e4b6bda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/services/ForestClientService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const useFetchTo = (
...config,
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': frontendUrl,
...config.headers
}
}
Expand Down Expand Up @@ -69,6 +70,7 @@ export const usePost = (url: string, body: any, config: any = {}) => {
...config,
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': frontendUrl,
...config.headers
}
}
Expand Down

0 comments on commit e4b6bda

Please sign in to comment.