You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means your single page application and API can share the same domain name, session support and database access without CORS and without 3rd party proxies.
I'm confused by this - I'd have thought that's normally possible on any platform, without any of those things.
Does it mean that the same route can be handled is multiple ways? Eg, an HTTP request from a browser that accepts HTML can go to /bananas, and an HTTP request from a API client that accepts JSON can also go to /bananas (rather than say /api/v1/bananas?
Or does it mean something else?
The text was updated successfully, but these errors were encountered:
Thinking thru some more strategies to make this simpler. Right now if you want to request an asset on S3 it will be served from a different domain which can make browsers sad (if we want to use HTTPS anyhow). The workaround is use the /_static proxy we add to API Gateway or use the the Lambda proxy at the root.
Did a bunch of research today trying to get the S3 bucket proxied from the root but TL;DR you can only do it with the Lambda function. This creates some config and general confusion. Working on an idea to eliminate that!
The doc in question here hasn't been online for a while and we're in the process of reorganizing thoughts/docs around SPAs as well. Unfortunately there still isn't a great reference for _static -- it's on my radar and will be part of the outline in #411.
Always good to know about confusing/vague docs, so definitely open new issues if newer docs are not helpful.
I'm confused by this - I'd have thought that's normally possible on any platform, without any of those things.
Does it mean that the same route can be handled is multiple ways? Eg, an HTTP request from a browser that accepts HTML can go to
/bananas
, and an HTTP request from a API client that accepts JSON can also go to/bananas
(rather than say/api/v1/bananas
?Or does it mean something else?
The text was updated successfully, but these errors were encountered: