Skip to content

Commit ea2a394

Browse files
committed
Add allow authorization header
1 parent ee87019 commit ea2a394

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inspatial/cloud",
3-
"version": "0.7.18",
3+
"version": "0.7.19",
44
"license": "Apache-2.0",
55
"exports": {
66
".": "./mod.ts",

src/serve/in-response.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ export class InResponse {
123123
"Access-Control-Allow-Methods",
124124
"GET, POST, PUT, PATCH, DELETE, OPTIONS",
125125
);
126-
this.#headers.set("Access-Control-Allow-Headers", "Content-Type");
126+
this.#headers.append("Access-Control-Allow-Headers", "Content-Type");
127+
this.#headers.append("Access-Control-Allow-Headers", "Authorization");
127128
}
128129
/**
129130
* Sets the `Access-Control-Allow-Origin` header to the provided origin.

0 commit comments

Comments
 (0)