Skip to content

enhance(fang): allow some wildcard syntax for Cors::with_trusted_origins#654

Open
1Cln wants to merge 3 commits into
ohkami-rs:mainfrom
1Cln:main
Open

enhance(fang): allow some wildcard syntax for Cors::with_trusted_origins#654
1Cln wants to merge 3 commits into
ohkami-rs:mainfrom
1Cln:main

Conversation

@1Cln
Copy link
Copy Markdown

@1Cln 1Cln commented Apr 9, 2026

This pull request adds the following for #542:

  1. Cors now allows alphanumeric characters in the verify function, so IP-addresses are supported.
  2. Cors now allows wildcards for subdomains and ports: *.
  3. Enamel::corss_origin_resource_policy has been renamed to Enamel::corss_origin_resource_policy and will have to be renamed in projects using this fang.

Please let me know if you have any suggestions or ideas!

…ric IPs, Enamel::corss_origin_resource_policy typo fixed
@1Cln 1Cln requested a review from kanarus as a code owner April 9, 2026 21:37
IClnI and others added 2 commits April 10, 2026 15:03
Fix edge-case for localhost not working due to .split() not being possible on just "localhost".
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.

2 participants