Closed uglyog closed 5 years ago
@Byron-TW FYI
I have released 0.1.1 with this fix
Thanks a lot for the fast response! I just verified it is also working for us! By the way: I am a fellow Rustacean myself and was extremely surprised to see Rust found its way into the pact ecosystem!
This was the reason I spent some time on filing a bug report, I really want to see it succeed! Now that I am aware of the location of the source, I should be able to fix things like these myself even.
All the best, Sebastian
Yay! Welcome.
When running the stub server v0.1.0, and querying the OPTIONS as is done by browsers using the
fetch
API, the returned header contains theAllow-Control-Access-Origin
twice. This is an error, as indicated by this message generated by Chrome.The response looks like this:
Suggestions
Maybe dependencies were silently updated when rebuilding the pact server, as a
Cargo.lock
file is absent. The bug might have been introduced transitively.How to reproduce
This is only a partial reproduction, but at least gives you the correct image to play with locally.