Skip to content

Commit

Permalink
feat(cli): allow credentials when adding CORS entry (#8191)
Browse files Browse the repository at this point in the history
RostiMelk authored Jan 6, 2025
1 parent c44e5b0 commit b57cb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/cli/src/util/remoteTemplate.ts
Original file line number Diff line number Diff line change
@@ -301,7 +301,7 @@ export async function setCorsOrigin(
await apiClient({api: {projectId}}).request({
method: 'POST',
url: '/cors',
body: {origin: origin, allowCredentials: false},
body: {origin: origin, allowCredentials: true}, // allowCredentials is true to allow for embedded studios if needed
})
} catch (error) {
// Silent fail, it most likely means that the origin is already set

0 comments on commit b57cb26

Please sign in to comment.