Skip to content

Commit

Permalink
Revert "feat(ltData): send Api-User-Agent"
Browse files Browse the repository at this point in the history
This reverts commit 6a39d1d.

Reason for revert:  CORS policy: Request header field api-user-agent is not allowed by Access-Control-Allow-Headers in preflight response.
  • Loading branch information
simon04 committed Aug 18, 2024
1 parent 6a39d1d commit 89911f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/api/ltData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,7 @@ async function fetchJSON<T>(url: RequestInfo, options?: RequestInit): Promise<T>
console.log('Fetching', url);
const res = await fetch(url, {
cache: 'no-cache',
headers: {
Accept: 'application/json',
'Api-User-Agent': 'locator-tool/' + import.meta.env.VITE_BUILD_VERSION
},
headers: {Accept: 'application/json'},
...options
});
if (res.ok) {
Expand Down

0 comments on commit 89911f0

Please sign in to comment.