Welcome! Log In Create A New Profile

Advanced

Re: Return proper status codes (404, 302) from client-side Single Page Application

Edho Arief
August 08, 2016 11:18AM
Hi,

On Tue, Aug 9, 2016, at 00:07, msonntag wrote:
> Hey B. R.,
>
> Thanks for getting back to me. I am pretty sure that I was not able to
> make
> my point very clear.
>
> The main point is that a client accessing www.example.com/items/1 is
> simply
> delivered a HTML file bootstrapping an AngularJS app. The JS client will
> then make a separate request to api.example.com/items/1 to fetch the
> data.

If going so far to hit api server anyway, why not proxy all requests
(except assets) and serve the index page if 200 and request type is
html? nginx then can intercept errors and return correct html error
page.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 05:50AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

B.R. August 08, 2016 06:06AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 06:15AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

B.R. August 08, 2016 10:44AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 11:07AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

Edho Arief August 08, 2016 11:18AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 12:59PM

Re: Return proper status codes (404, 302) from client-side Single Page Application

Edho Arief August 08, 2016 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready