2 ms·
I don’t understand what the article is actually recommending. To avoid CORS requests, I usually proxy www.foobar.app/api to api.foobar.app, but it seems like th
by ngrilly 5y ago
I don’t understand what the article is actually recommending. To avoid CORS requests, I usually proxy www.foobar.app/api to api.foobar.app, but it seems like the article is suggesting the opposite.
- jefftk 5y agoThe author is recommending that the client see only requests to foobar.app, and if you have a separate host for the API, you use a reverse proxy. Which I think is also what you are saying you do?
- ngrilly 5y agoYes, that’s what I’m usually doing.
- Traubenfuchs 5y agoYou are not the only one being confused. I think the author mixed it up?
- ngrilly 5y agoI’m under the same impression :)