...
In this case, the headers listed in the parameter will be added to 200 OK response:
Sometimes, for example, when load balancer AWS LB is used, it is necessary to set request origin address including port in ACAO header sent in response to GET request, for example
Code Block |
---|
|
Access-Control-Allow-Origin: http://test.flashphoner.com:8081 |
However, origin address is not always known while configuring the server. Therefore, since build 5.2.755 mask support in ACAO header can be enabled
Code Block |
---|
|
hls_acao_header_domain_mask=true |
This feature is enabled by default. In this case, if '*' character is set in the following parameter
Code Block |
---|
|
hls_access_control_headers=Access-Control-Allow-Origin: * |
server returns ACAO header with full request origin address in response to GET request
Code Block |
---|
|
Access-Control-Allow-Origin: http://lb.yourdomain.com:8081 |
This can be disabled if necessary
Code Block |
---|
|
hls_acao_header_domain_mask=false |
Using nginx as reverse proxy for HLS playback
...