How to add a cdn library in a project


#1

Dear all,

Does anyone know how to add a library from a CDN in an AppStudio project?
Specifically I am looking on adding the mqtt over websocket from cloudflare:

<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script>

Thank you


#2

In Project Properties, go to extraheaders. Put the line in there exactly as you have it.


#3

Thanks, worked as expected