Application security

Control access to application and the data

There are two sides to security:

  1. How do you access and get data or other material from an external source?
  2. How do you keep certain external sites, processes or people from accessing your application and the things your application can access?

There is a separate section that deals with both topics in more detail, but the most common problem, especially for applications that mainly present data instead of collecting data, is how to access an external resource.

It is up the external resource to decide whether you can access it or not. And even if the external resource intends to let others access it, there may be rules and restrictions about who can get permission, and under what conditions. If you run into an access problem, look for documentation on “Cross-Origin Resource Sharing” or CORS.

Fortunately, for this tutorial, GitHub’s APIs are very permissive. Once you have your application on a website it should now show rows of commits even if it wasn’t when running from file://.

Previous Page | Next Page