Skip to content

Commit

Permalink
fix: allows CORS for keyvalue API (medplum#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonstreator committed May 7, 2024
1 parent 932e2ec commit 5e1b9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function isOriginAllowed(origin: string | undefined): boolean {
return false;
}

const prefixes = ['/.well-known/', '/admin/', '/auth/', '/email/', '/fhir/', '/fhircast/', '/oauth2/'];
const prefixes = ['/.well-known/', '/admin/', '/auth/', '/email/', '/fhir/', '/fhircast/', '/oauth2/', '/keyvalue/'];

function isPathAllowed(path: string): boolean {
return prefixes.some((prefix) => path.startsWith(prefix));
Expand Down

0 comments on commit 5e1b9a6

Please sign in to comment.