Skip to content

Disable CORS in the default RestServer configuration - #1162

Merged
ajara87 merged 5 commits into
master-n3from
fix/restserver-disable-cors-default
Nov 27, 2026
Merged

ajara87 merged 5 commits into
master-n3from
fix/restserver-disable-cors-default

Conversation

@shargon

@shargon shargon commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Disable CORS in the shipped RestServer configuration.
  • Add a regression test that loads the distributed RestServer.json and checks the CORS default.

Checks

  • JSON configuration parsed and the expected default was verified.
  • git diff --check passed.
  • dotnet test tests/Neo.Plugins.RestServer.Tests/Neo.Plugins.RestServer.Tests.csproj --filter FullyQualifiedName~RestServerSettingsTests could not complete because the current RestServer build fails on existing Script.ToBase64String calls in RestServerUtility.JTokens.cs (lines 72 and 321).

Reported by @temantih.

@github-actions github-actions Bot added the N3 label Nov 25, 2026
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.23%. Comparing base (dfc9ab4) to head (61d1f36).
⚠️ Report is 1 commits behind head on master-n3.

Additional details and impacted files
@@            Coverage Diff             @@
##           master-n3    #1162   +/-   ##
==========================================
  Coverage      54.23%   54.23%           
==========================================
  Files            299      299           
  Lines          17963    17963           
  Branches        2346     2346           
==========================================
  Hits            9742     9742           
  Misses          7601     7601           
  Partials         620      620           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajara87
ajara87 merged commit e2d475c into master-n3 Nov 27, 2026
@ajara87
ajara87 deleted the fix/restserver-disable-cors-default branch November 27, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants