Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Wire API, CORS and API_BASE

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Wire API, CORS and API_BASE UI and API are different origins. One wrong URL breaks the demo. HTTP API routes + CORS; set const API_BASE in app.js (no trailing slash). GET/POST /notes, DELETE /notes/{id}; paste invoke URL into app.js. Add note in UI → Network 201 → list refreshes.
Wire API, CORS and API_BASE · Download PNG
Read card text

What this card says

Why do we need it?

UI and API are different origins. One wrong URL breaks the demo.

What is it?

HTTP API routes + CORS; set const API_BASE in app.js (no trailing slash).

How to do it

GET/POST /notes, DELETE /notes/{id}; paste invoke URL into app.js.

API_BASE

Example

Add note in UI → Network 201 → list refreshes.

See all AWS revision cards