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

Add missing documentation for cors policy config #41

Open
fb-smit opened this issue Feb 13, 2024 · 0 comments
Open

Add missing documentation for cors policy config #41

fb-smit opened this issue Feb 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed PiBox.Hosting.WebHost

Comments

@fb-smit
Copy link
Contributor

fb-smit commented Feb 13, 2024

We are missing some docs for how to configure the cors policy in the appsettings

CorsPolicy:
  Origins:
    - "http://localhost:4200"
    - "http://localhost:4201"
  ExposedHeaders:
    - "x-custom-header"
  Methods:
    - "POST"
  SupportsCredentials: "true"

Docs from MS:
https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.cors.infrastructure.corspolicy?view=aspnetcore-8.0
https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-8.0

@fb-smit fb-smit added documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed PiBox.Hosting.WebHost labels Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed PiBox.Hosting.WebHost
Projects
None yet
Development

No branches or pull requests

1 participant