1

Is it possible to secure a Single Page Application (SPA) served from a CDN that communicates with a REST API, assuming the following:

  • The front end communicates with a backend REST API using a token once the user has been authenticated
  • The front end is only served via CDN with a wildcard HTTPS cert

How do you avoid CSRF?

  • wildcard HTTPS cert you need to elaborate more on that. How the wildcard cert is defined and how you load the resources matters a lot on whether or not data loaded from the CDN is secure. – Lie Ryan Sep 21 '14 at 15:33
  • Many SPAs are shifting towards "isomorphic" architecture where you surve ony static files from CDN (images, .js, fonts etc.) but HTML pages are generated on the server (could be the same domain, where API endpoint is located). – Konstantin Tarkus Sep 22 '14 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.