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

Fix Missing antiforgery token on swagger #21444

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Fix Missing antiforgery token on swagger #21444

merged 1 commit into from
Nov 26, 2024

Conversation

realLiangshiwei
Copy link
Member

Description

Resolves #21443

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

@realLiangshiwei realLiangshiwei added this to the 9.0-patch milestone Nov 25, 2024
@maliming maliming merged commit f367b6a into rel-9.0 Nov 26, 2024
2 of 3 checks passed
@maliming maliming deleted the swaggerpatch branch November 26, 2024 01:26
@ejohnson-dotnet
Copy link
Contributor

The file wwwroot\swagger\ui\index.js needs to be set as an embedded resource.
The project file framework\src\Volo.Abp.Swashbuckle\Volo.Abp.Swashbuckle.csproj needs this:

    <ItemGroup>
      <None Remove="wwwroot\swagger\ui\abp.swagger.js" />
      <EmbeddedResource Include="wwwroot\swagger\ui\abp.swagger.js" />
      <None Remove="wwwroot\swagger\ui\abp.js" />
      <EmbeddedResource Include="wwwroot\swagger\ui\abp.js" />
      <None Remove="wwwroot\swagger\ui\index.js" />
      <EmbeddedResource Include="wwwroot\swagger\ui\index.js" />
    </ItemGroup>

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

Successfully merging this pull request may close these issues.

3 participants