13.1 Requirements
The example website has been developed using JavaScript, and has been tested in Google Chrome, Microsoft Edge, and Mozilla Firefox on a Windows PC.
The website was developed using Visual Studio Code as an HTML editor:
To provide a local web server, this example uses the Live Server extension for Visual Studio Code:
marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
You can use any HTML editor and web server you want. Note, however, that you must use a web server to host your web pages; you cannot use local HTML files running from the file system, as the MyID authentication server does not allow cross-origin resource sharing from file:// protocols. These examples assume you are running from a local web server as provided by the Live Server extension with an address of:
http://127.0.0.1:5500/
Important: This example expects that you have some knowledge of JavaScript; it is not intended to teach you how to create websites. Consult a professional web developer for advice on best practices; the JavaScript samples in this chapter are intended to teach the principles of calling the MyID Core API using JavaScript, and are not intended for use in production environments.