DEV Community

loading...

Discussion on: The amazing powers of the web: Web Serial API

Collapse
andresgamez profile image
Ændres Gámez

Hello Diego! Thanks for this, it's awesome and easy to implement. I just have one question...
When I run the project locally it works perfect but when I load it into a Elastic Beanstalk app running with ruby it seems like my browser doesn't have enabled "enable-experimental-web-platform-features" but it is enable. Any reason for this? Thanks in advance.

Collapse
unjavascripter profile image
Diego Coy Author

Hi, did you add an Origin Trial token to your app?

The enable-experimental-web-platform-features makes the API available for your browser when developing locally. Once you deploy it you'll need an Origin Trial token to make the browser load the API. Check developers.chrome.com/origintrials...

Collapse
andresgamez profile image
Ændres Gámez

It's working fine. Thanks man!
Another thing I had to do in order to use Serial API was adding a SSL certificate to my site.

Thread Thread
unjavascripter profile image
Diego Coy Author

Great to know! Yep, these new APIs require the web app to use HTTPS to be made available because they can be a risk if not loaded securely.