fix: API chat/completion is blocked by CORS (#1705)
This commit is contained in:
parent
69ff85f66a
commit
f8c1f91b73
@ -317,6 +317,7 @@ export const chatCompletions = async (request: any, reply: any) => {
|
|||||||
'Content-Type': 'text/event-stream',
|
'Content-Type': 'text/event-stream',
|
||||||
'Cache-Control': 'no-cache',
|
'Cache-Control': 'no-cache',
|
||||||
'Connection': 'keep-alive',
|
'Connection': 'keep-alive',
|
||||||
|
"Access-Control-Allow-Origin": "*"
|
||||||
})
|
})
|
||||||
|
|
||||||
const headers: Record<string, any> = {
|
const headers: Record<string, any> = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user