diff --git a/platform/version.go b/platform/version.go index 8fd501af..6a29ec96 100644 --- a/platform/version.go +++ b/platform/version.go @@ -6,4 +6,4 @@ package main // The version for platform. -const version = "v5.11.13" +const version = "v5.11.14" diff --git a/scripts/setup-aapanel/info.json b/scripts/setup-aapanel/info.json index d5b8da7e..0a037276 100644 --- a/scripts/setup-aapanel/info.json +++ b/scripts/setup-aapanel/info.json @@ -2,7 +2,7 @@ "title": "SRS Stack", "name": "srs_stack", "ps": "SRS Stack is an all-in-one, one-click, and open-source video solution for creating online services on cloud or self-hosting. Built with SRS, FFmpeg, and WebRTC, it supports various protocols and offers features like authentication, multi-platform streaming, recording, transcoding, virtual live events, automatic HTTPS, and HTTP Open API.", - "versions": "5.11.13", + "versions": "5.11.14", "checks": "/www/server/panel/plugin/srs_stack", "author": "Winlin", "home": "https://github.com/ossrs/srs-stack" diff --git a/scripts/setup-bt/info.json b/scripts/setup-bt/info.json index 97a283c3..4e3c1765 100644 --- a/scripts/setup-bt/info.json +++ b/scripts/setup-bt/info.json @@ -2,7 +2,7 @@ "title": "SRS音视频服务器", "name": "srs_stack", "ps": "SRS Stack让你一键拥有自己的视频云解决方案,可以在云上或私有化部署,支持丰富的音视频协议,提供鉴权、私人直播间、多平台转播、录制、转码、虚拟直播、自动HTTPS、开放API等丰富功能,基于SRS、FFmpeg和WebRTC构建。", - "versions": "5.11.13", + "versions": "5.11.14", "checks": "/www/server/panel/plugin/srs_stack", "author": "Winlin", "home": "https://github.com/ossrs/srs-stack" diff --git a/scripts/setup-droplet/srs.json b/scripts/setup-droplet/srs.json index f2f189ea..91805cf4 100644 --- a/scripts/setup-droplet/srs.json +++ b/scripts/setup-droplet/srs.json @@ -3,7 +3,7 @@ "do_token": "{{env `DIGITALOCEAN_TOKEN`}}", "image_name": "srs-5-snapshot-{{timestamp}}", "application_name": "SRS", - "application_version": "5.11.13" + "application_version": "5.11.14" }, "sensitive-variables": ["do_token"], "builders": [ diff --git a/test/api_test.go b/test/api_test.go index acad38ce..ee9ecdb9 100644 --- a/test/api_test.go +++ b/test/api_test.go @@ -569,17 +569,17 @@ func TestApi_SrsApiCorsNoOrigin(t *testing.T) { for _, header := range []struct { Key, Value string }{ - {"Access-Control-Allow-Origin", ""}, - {"Access-Control-Allow-Headers", ""}, - {"Access-Control-Allow-Methods", ""}, - {"Access-Control-Expose-Headers", ""}, - {"Access-Control-Allow-Credentials", ""}, + {"Access-Control-Allow-Origin", "*"}, + {"Access-Control-Allow-Headers", "*"}, + {"Access-Control-Allow-Methods", "*"}, + {"Access-Control-Expose-Headers", "*"}, + {"Access-Control-Allow-Credentials", "true"}, } { if value := resp.Header.Get(header.Key); value != header.Value { r1 = errors.Errorf("invalid CORS %v=%v, expect %v", header.Key, header.Value, value) } - if values := resp.Header.Values(header.Key); len(values) != 0 { - r1 = errors.Errorf("invalid CORS %v=%v, expect no one", header.Key, values) + if values := resp.Header.Values(header.Key); len(values) != 1 { + r1 = errors.Errorf("invalid CORS %v=%v, expect only one", header.Key, values) } } }