Skip to content

Commit

Permalink
fix: append CORS headers - fix #40 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
pagoru authored Aug 16, 2024
1 parent 485d283 commit 198a371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/src/system/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { requestV2List } from "modules/api/v2/main.ts";
import { getContentType } from "shared/utils/main.ts";
import { appendCORSHeaders, getContentType } from "shared/utils/main.ts";
import { System } from "system/main.ts";

export const api = () => {
Expand Down Expand Up @@ -50,7 +50,7 @@ export const api = () => {
);
if (foundMethodRequest) {
const response = await foundMethodRequest.func(request, parsedUrl);
// appendCORSHeaders(response.headers);
appendCORSHeaders(response.headers);
return response;
}
if (foundRequests.length)
Expand Down

0 comments on commit 198a371

Please sign in to comment.