mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added cors origin
This commit is contained in:
parent
bba2e31a6b
commit
3336107811
@ -343,6 +343,11 @@ class StreamingServer {
|
||||
initialize = async () => {
|
||||
await this.Db.connect()
|
||||
|
||||
// fix cors
|
||||
this.IHTTPServer.httpInterface.options("*", require("cors")({
|
||||
origin: "localhost"
|
||||
}))
|
||||
|
||||
await this.IHTTPServer.initialize()
|
||||
await this.IMediaServer.run()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user