Menu
Libraries |
Category

http-interceptors

  • Demonstrates HTTP interceptors implementation in both Angular and Svelte applications
  • Angular version uses HttpClient interceptors
  • Svelte version uses Axios interceptors
  • Shows different interceptor execution flows between Angular and Axios
  • Includes features:
    • Pages for home, movies, heroes and villains
    • Authentication handling
    • Read-only vs editable content based on auth status
    • State management
    • Styling with Bulma and Font Awesome
  • Provides example implementations of various interceptors:
    • Logging (HTTP traffic and headers)
    • Read-only request blocking
    • SSL enforcement
    • Authentication headers
    • CSRF protection
    • Busy/loading indicators
    • Response transformation
  • Includes backend API simulation using json-server and json-server-auth
  • Created by John Papa fa-solid fa-up-right-from-square

typescriptsveltesveltejsangularaxiosbulmahttphttp-clientaxios-interceptorhttp-interceptorjavascriptjson-serverjson-server-authtour-of-heroes

Comments