websocket allowed origins implementation

This commit is contained in:
Čarodej
2022-04-22 09:44:40 +02:00
parent 5e86799a82
commit 6e8714aec5
4 changed files with 52 additions and 2 deletions

View File

@@ -46,8 +46,7 @@ return [
* This array contains the hosts of which you want to allow incoming requests.
* Leave this empty if you want to accept requests from all hosts.
*/
'allowed_origins' => [
],
'allowed_origins' => explode(',', env('PUSHER_APP_ALLOWED_ORIGIN', '')),
/*
* The maximum request size in kilobytes that is allowed for an incoming WebSocket request.