Skip to content

Commit 9e4c381

Browse files
Fix to allow access from web pages
1 parent f701a4b commit 9e4c381

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift-rest-api/Sources/ProductService/APIGateway.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public struct APIGatewayProxyResult: Codable {
124124
}
125125
self.init(
126126
statusCode: statusCode,
127-
headers: ["Content-Type": "application/json"],
127+
headers: ["Content-Type": "application/json",
128+
"Access-Control-Allow-Origin": "*"],
128129
body: outBody
129130
)
130131
}

0 commit comments

Comments
 (0)