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

fixed cors origin issue #59

Merged
merged 4 commits into from
Mar 23, 2018
Merged

fixed cors origin issue #59

merged 4 commits into from
Mar 23, 2018

Conversation

ksripathi
Copy link
Contributor

@travula @lalitsanagavarapu

Requesting you to review the code and let us know if any changes to be done

@travula travula self-requested a review March 14, 2018 04:40
@@ -134,7 +134,8 @@ SQLALCHEMY_ECHO = False
SQLALCHEMY_TRACK_MODIFICATIONS = True

# List of allowed origins for CORS
ALLOWED_ORIGINS = "['*']"
#ALLOWED_ORIGINS = "['*']"
ALLOWED_ORIGINS = ["http://outreach.vlabs.ac.in"]
Copy link
Member

Choose a reason for hiding this comment

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

Checkout link to use regular expressions. The idea is to allow all origins within vlabs.ac.in

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@travula

Instead setting up allowed origins in flask configuration, we made same on apache hence this can be ignore

Copy link
Member

Choose a reason for hiding this comment

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

Allow * here and write the narrative that CORS settings are done in apache and not at flask

@lalitsanagavarapu
Copy link

lalitsanagavarapu commented Mar 14, 2018 via email

@ksripathi ksripathi merged commit 1243344 into develop Mar 23, 2018
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.

3 participants