Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CORS preflight status #5144

Merged
merged 2 commits into from Sep 2, 2021
Merged

Fix CORS preflight status #5144

merged 2 commits into from Sep 2, 2021

Conversation

rossabaker
Copy link
Member

Fixes #5143.

@@ -214,7 +214,7 @@ sealed class CORSPolicy(
) {
import CORSPolicy._

def apply[F[_]: Functor, G[_]](http: Http[F, G]): Http[F, G] = {
def apply[F[_]: Applicative, G[_]](http: Http[F, G]): Http[F, G] = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Tests pass, but this breaks binary compatibility. I don't think we can implement it correctly on Functor.

Copy link
Member Author

Choose a reason for hiding this comment

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

I hacked around this. Somewhat extreme lengths for a day-old signature, but I like to not make exceptions.

@rossabaker
Copy link
Member Author

Failure is unrelated.

/cc @jbwheatley @bplommer

@rossabaker rossabaker merged commit 9cfe091 into series/0.21 Sep 2, 2021
@rossabaker rossabaker deleted the cors-preflight-status branch September 2, 2021 18:54
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.

None yet

2 participants