Re: [presentation-api] Uncaught ReferenceError: PresentationRequest is not defined (#472)

Hi,

Thanks for the pointer.   The example code at that URL is out of date, I will try to contact the maintainers to fix that.

1. What URL are you serving this from?  I noticed you have http: IP addresses in the PresentationRequest.  Those are not allowed because communicating from https: to http: is considered a mixed content situation.

Please try serving both the controlling and receiving page over https: or using Chrome's commandline flags to whitelist your origin:

```
--unsafely-treat-insecure-origin-as-secure=http://<host>:<port>
```

2. Are you serving this file as HTML?  I assume so, since you're seeing a JS exception.



-- 
GitHub Notification of comment by mfoltzgoogle
Please view or discuss this issue at https://github.com/w3c/presentation-api/issues/472#issuecomment-532602930 using your GitHub account

Received on Wednesday, 18 September 2019 09:28:28 UTC