Closed anjackson closed 1 year ago
Hm, can't reproduce this. NPLD Player on Windows (BL Laptop) works as expected. Very odd.
Aside, I think, but this can be tidied up. On a second viewing of a page:
(index):255 Uncaught TypeError: Cannot read properties of undefined (reading 'preventDefault')
at closePopup ((index):255:7)
at setModalVisibility ((index):264:7)
at (index):268:3
i.e. the same logic is used to close then popup after accepting it, so preventDefault
should not be called when the event is undefined.
All very odd. Replied with more detail and asking for more detail!
Image of problematic view looks like CSS/JS is being blocked, but I don't understand why that would be. I've run NPLD Player locally with DevTools and verified that the security header is being passed, and it is.
Ah, I think this is because the embedded resources are being served over HTTP, because nothing is configuring the scheme/protocol.
Rather than hard-coding the deployment host or protocol, we use the convention of expecting particular headers to be set by upstream proxies. In particular, in NGINX, we use:
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
The web application picks those headers up and uses them to construct URLs that refer to itself. I think those are not set in this case, and the defaults are not working.
Yep, fixing that seemed to make it work.
Report that the NPLD terms banner is not viewable in some browsers. In particular, it's too large to see and vertical scrolling is apparently not working.
Also, accepting the terms seems to be modifying the URL, adding a
?terms-conditions=screen-reader
suffix (when it should only set a cookie). This was in the NPLD Player.Other issues arising during exploration:
closePopup
, we should not callpreventDefault
when the form submission event isundefined
.