PeterPierinakos / vanilla-rustlang-server

Simple, minimal and open source static web server that uses no dependencies.
Apache License 2.0
38 stars 1 forks source link

CORS origin blocking support #1

Closed PeterPierinakos closed 2 years ago

PeterPierinakos commented 2 years ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like Implement origin blocking via the Cors struct.

Describe alternatives you've considered

Additional context This feature request is open just in case if any new contributor would like to try and implement it. In the meantime, I just implemented an algorithm to find all the headers from a plain String in the utils directory and now I will read more about how CORS works.

PeterPierinakos commented 2 years ago

(Now planned for Beta 3.)

PeterPierinakos commented 2 years ago

I am now working on this so I am closing the issue.

PeterPierinakos commented 2 years ago

Now implemented.