mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 16:21:35 +01:00
fix: broaden socket.io sub_filter pattern to match trailing slash variant
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
@@ -11,6 +11,7 @@ sub_filter 'href="/' 'href="%%ingress_entry%%/';
|
||||
sub_filter 'src="/' 'src="%%ingress_entry%%/';
|
||||
|
||||
# Rewrite API paths in JS bundles (axios baseURL and fetch calls)
|
||||
# Pattern includes baseURL:"/api" (no trailing slash) so "/api" is needed
|
||||
sub_filter '"/api' '"%%ingress_entry%%/api';
|
||||
sub_filter "'/api" "'%%ingress_entry%%/api";
|
||||
|
||||
@@ -19,5 +20,5 @@ sub_filter '"/stream/' '"%%ingress_entry%%/stream/';
|
||||
sub_filter "'/stream/" "'%%ingress_entry%%/stream/";
|
||||
|
||||
# Rewrite Socket.IO default path in the client library
|
||||
sub_filter '"/socket.io"' '"%%ingress_entry%%/socket.io"';
|
||||
sub_filter "'/socket.io'" "'%%ingress_entry%%/socket.io'";
|
||||
sub_filter '"/socket.io' '"%%ingress_entry%%/socket.io';
|
||||
sub_filter "'/socket.io" "'%%ingress_entry%%/socket.io";
|
||||
|
||||
Reference in New Issue
Block a user