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

abp 9.0 swagger invoke post api error The required antiforgery header value "RequestVerificationToken" is not present #21524

Closed
1 task done
RobinGitHub opened this issue Dec 3, 2024 · 2 comments

Comments

@RobinGitHub
Copy link

RobinGitHub commented Dec 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

abp 9.0 use swagger invoke post api tip
The required antiforgery header value "RequestVerificationToken" is not present
in abp 8.0 swagger invoke post api is ok

swagger set
private void ConfigureSwaggerServices(IServiceCollection services, IConfiguration configuration) { services.AddAbpSwaggerGenWithOAuth( configuration["AuthServer:Authority"]!, new Dictionary<string, string> { { "Test", "Test API" } }, options => { options.SwaggerDoc("v1", new OpenApiInfo { Title = "Test API", Version = "v1" }); options.DocInclusionPredicate((docName, description) => true); options.CustomSchemaIds(type => type.FullName); } ); }

image

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

9.0

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

@RobinGitHub RobinGitHub added the bug label Dec 3, 2024
@maliming
Copy link
Member

maliming commented Dec 3, 2024

hi

You can check this pr
#21444

@maliming maliming removed the bug label Dec 3, 2024
@RobinGitHub
Copy link
Author

ok,thanks

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