'Can I reverse-proxy POST requests while using CloudFront CDN for GET requests?
Currently I have CloudFront distribution that serves SPA (spa.myapp.com) from S3 bucket. I have also web server deployed in k8s on AWS.
Is it possible to forward all POST spa.myapp.com/* requests to my web server instead? What components / configuration I need to do this?
Is it possible to forward all spa.myapp.com/api/* requests to my web server instead (regardless of http method)? What components / configuration I need to do this?
Generally I want to serve SPA from CDN but also have few endpoints server side on same domain.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
