@@ -214,7 +214,7 @@ def tv_power(request) -> Tuple[str, List[Tuple[str, str]], List[str]]:
214
214
Power On command: <a href="?enable=1">Enable</a> <a href="?enable=0">Disable</a><br>
215
215
<a href="/tv/" id="tv">Back to tv</a>""" )
216
216
print (response_html )
217
- return "200 OK" , [], [response_html ]
217
+ return "200 OK" , [( 'Access-Control-Allow-Origin' , '*' ) ], [response_html ]
218
218
219
219
220
220
@web_app .route ("/tv/volume/" )
@@ -252,7 +252,7 @@ def tv_volume(request) -> Tuple[str, List[Tuple[str, str]], List[str]]:
252
252
Mute: <a href="?m=0">Toggle</a> <a href="?m=1">Mute</a> <a href="?m=2">Unmute</a> <a href="?m=s">Status</a><br>
253
253
<a href="/tv/" id="tv">Back to tv</a>""" )
254
254
print (response_html )
255
- return "200 OK" , [], [response_html ]
255
+ return "200 OK" , [( 'Access-Control-Allow-Origin' , '*' ) ], [response_html ]
256
256
257
257
258
258
@web_app .route ("/tv/input/" )
@@ -290,7 +290,7 @@ def tv_input(request) -> Tuple[str, List[Tuple[str, str]], List[str]]:
290
290
<a href="?i=x">Toggle</a><br>
291
291
<a href="/tv/" id="tv">Back to tv</a>""" )
292
292
print (response_html )
293
- return "200 OK" , [], [response_html ]
293
+ return "200 OK" , [( 'Access-Control-Allow-Origin' , '*' ) ], [response_html ]
294
294
295
295
296
296
@web_app .route ("/tv/channel/" )
@@ -320,7 +320,7 @@ def tv_channel(request) -> Tuple[str, List[Tuple[str, str]], List[str]]:
320
320
<a href="?c=u">Up</a> <a href="?c=d">Down</a><br>
321
321
<a href="/tv/" id="tv">Back to tv</a>""" )
322
322
print (response_html )
323
- return "200 OK" , [], [response_html ]
323
+ return "200 OK" , [( 'Access-Control-Allow-Origin' , '*' ) ], [response_html ]
324
324
325
325
326
326
def html_doc (title : str , body : str ) -> str :
0 commit comments