mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(deployment: fixed api key get
This commit is contained in:
@@ -33,7 +33,8 @@ export async function validateWorkflowAccess(
|
||||
}
|
||||
|
||||
// API key authentication
|
||||
const apiKey = request.headers.get('x-api-key')
|
||||
const apiKey =
|
||||
request.headers.get('x-api-key') || request.nextUrl.searchParams.get('X-API-KEY')
|
||||
if (!apiKey || !workflow.apiKey || apiKey !== workflow.apiKey) {
|
||||
return {
|
||||
error: {
|
||||
|
||||
Reference in New Issue
Block a user