mavlink / mavlink2rest

mavlink2rest creates a REST server that provides mavlink information from a mavlink source
MIT License
89 stars 28 forks source link

Re-add the cors lines for actix #62

Closed noahbliss closed 1 year ago

noahbliss commented 1 year ago

Adds lines previously added to fix cors issues, but subsequently lost presumably due to a code rewrite. Fixes https://github.com/patrickelectric/mavlink2rest/issues/61 by reimplementing historical fix https://github.com/patrickelectric/mavlink2rest/commit/5964e2dc250b7ccd0614befcb6a2b99e4e41843f as mentioned in https://github.com/patrickelectric/mavlink2rest/issues/12.

patrickelectric commented 1 year ago

Hi @noahbliss let me know if this fixes your issue

noahbliss commented 1 year ago

This works, but it allows from any source (* policy). You may want to add a disclaimer in the readme.

This does, however, function. :)

noahbliss commented 1 year ago

I think you still have to merge my dude. :)