Skip to content

fix: allow cors for patch, put and delete#1856

Merged
pyphilia merged 3 commits into
mainfrom
fix-cors
May 1, 2025
Merged

fix: allow cors for patch, put and delete#1856
pyphilia merged 3 commits into
mainfrom
fix-cors

Conversation

@pyphilia
Copy link
Copy Markdown
Contributor

@pyphilia pyphilia commented May 1, 2025

Allow back patch, put, delete and options in cors.

Given #1358 it would be better to not decorate the options. For simplicity I just added the necessary option.

@pyphilia pyphilia requested a review from spaenleh May 1, 2025 08:54
@pyphilia pyphilia self-assigned this May 1, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2025

@pyphilia
Copy link
Copy Markdown
Contributor Author

pyphilia commented May 1, 2025

Because of one library that is in esm, the build for jest was failing. I downgraded ts-jest. Another solution would be to use isolatedModules: true.

Copy link
Copy Markdown
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice ! Indeed we could investigate using isolated modules. But I think it requires some refactoring of incorrect code.

@pyphilia pyphilia added this pull request to the merge queue May 1, 2025
Merged via the queue into main with commit b6060b9 May 1, 2025
8 checks passed
@pyphilia pyphilia deleted the fix-cors branch May 1, 2025 12:13
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.

2 participants