CORS change
This commit is contained in:
1 parent
5762de656c
commit
0e226cfc42
2 files changed
+8
-1
No files matched your search
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- A bug where Session data did not refresh after 24 hours
|
- A bug where Session data did not refresh after 24 hours
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- [advanced users]: the Playlet web server's CORS headers are no longer set to `*`, for security reasons.
|
||||||
|
|
||||||
## [0.36.7] - 2025-05-04
|
## [0.36.7] - 2025-05-04
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -36,7 +36,10 @@ function GetServerAddress(_unused as dynamic) as dynamic
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function SetupRoutes(server as object)
|
function SetupRoutes(server as object)
|
||||||
server.UseRouter(new Http.CorsMiddleware())
|
#if DEBUG
|
||||||
|
'CORS is mostly for developing the web app
|
||||||
|
server.UseRouter(new Http.CorsMiddleware())
|
||||||
|
#end if
|
||||||
if server.settings.WebSocketsEnabled
|
if server.settings.WebSocketsEnabled
|
||||||
server.UseRouter(new Http.WebSocketMiddleware())
|
server.UseRouter(new Http.WebSocketMiddleware())
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user