Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

[Question] http request against authorized api:s and server pre-rendering #249

@baserz

Description

@baserz

Hi folks
Have a question in regards to the prerendering functionality. It seems that when prerendering is run it doesnt recognize for example an active forms session through Identity (where the method is utilizing the Authorize attribute). It will render on the server-side, resulting in a status 401, then rendered again at the client-side (this time successfully).

The question is two-fold. 1: Is there any way of making the prerendering functionality take identity authorization into consideration and if not, is there preferred way (other than buildning control mechanism yourself) which can be used to only run certain ng2 calls / methods if rendered on client-side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions