Skip to content

feat: Add cors support #9

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

Merged
merged 1 commit into from
Nov 1, 2024
Merged

feat: Add cors support #9

merged 1 commit into from
Nov 1, 2024

Conversation

stevensJourney
Copy link
Contributor

Overview

Web support has been added to the Flutter Django demo in powersync-ja/powersync.dart#200. Using this backend in a browser requires the HTTP routes to allow cross-origin requests. This PR adds CORS headers to allow requests from any domain.

See the snapshot of the Chrome Network tools while running the Flutter Django demo in web. The response headers now contain CORS values.
image

Copy link

@mugikhan mugikhan left a comment

Choose a reason for hiding this comment

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

LGTM!

@stevensJourney stevensJourney merged commit d6d14f7 into main Nov 1, 2024
@stevensJourney stevensJourney deleted the feat/cors branch November 1, 2024 13:24
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