Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Oct 4, 2023
1 parent 7723ff1 commit b914dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class CORS {
if (!allowedHeaders) {
// headers wasn't specified, so reflect the request headers
let requestHeaders = request.headers.get(
"Access-Control-Request-Headers",
"Access-Control-Request-Headers"
);

if (this.isString(requestHeaders)) allowedHeaders = requestHeaders;
Expand Down Expand Up @@ -258,7 +258,7 @@ class CORS {
export async function cors(
request: Request,
response: Response,
options: CORSOptions = DEFAULT_OPTIONS,
options: CORSOptions = DEFAULT_OPTIONS
): Promise<Response> {
return new CORS(options).exec(request, response);
}

0 comments on commit b914dac

Please sign in to comment.