Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AbpSwaggerUi for all modules and templates #6040

Closed
mtozlu opened this issue Nov 3, 2020 · 3 comments
Closed

Use AbpSwaggerUi for all modules and templates #6040

mtozlu opened this issue Nov 3, 2020 · 3 comments

Comments

@mtozlu
Copy link
Contributor

mtozlu commented Nov 3, 2020

With #5728 and #5864 UseAbpSwaggerUi is used by some of the templates however some modules and HttpApi.Host project in app template is not updated so using swagger for operations that needs CSRF token causes error in those projects.
Here is the list that is not updated;
image

@realLiangshiwei
Copy link
Member

Hi, this is intentional. You can directly use the client's(Web) swagger page.

@mtozlu
Copy link
Contributor Author

mtozlu commented Nov 3, 2020

If you use app template with angular ui, the solution does not contain any Web project (MyCompanyName.MyProjectName.HttpApi.HostWithIds template). Even if it did, using swagger to do some operation that needs a CSRF token, the api gives error:

The required antiforgery header value "RequestVerificationToken" is not present.

@realLiangshiwei
Copy link
Member

Related #6124

@mtozlu mtozlu closed this as completed Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants