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 CORS support to MiniProfiler #509

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmccloghrylaing
Copy link

  • Add CorsOrigins property to MiniProfilerOptions
  • Set header Access-Control-Expose-Headers: X-MiniProfiler-Ids for profiled cross-origin requests
  • Set CORS header Access-Control-Allow-Origin for cross-origin requests handled by MiniProfiler
  • Set CORS headers Access-Control-Allow-Headers & Access-Control-Allow-Methods and return 200 for cross-origin OPTIONS requests handled by MiniProfiler.

Closes #502

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.

Add CORS support for MiniProfiler
1 participant