-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
src/runtime/config/config.org
Outdated
@@ -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"] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead setting up allowed origins in flask configuration, we made same on apache hence this can be ignore
There was a problem hiding this comment.
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
Sravanthi,
Please validate it based on your readings and understanding. Please share
your observations on the fix
regards
Lalit
…On Wed, Mar 14, 2018 at 10:11 AM, Thirumal Ravula ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/runtime/config/config.org
<#59 (comment)>:
> @@ -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"]
Checkout link
<https://flask-cors.corydolphin.com/en/v1.8.0/#flask_cors.cross_origin>
to use regular expressions. The idea is to allow all origins within
vlabs.ac.in
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALBKUhZZwkF6IhH6uWQV8P3PZkIBTTY8ks5teJ9ggaJpZM4SoJEi>
.
|
@travula @lalitsanagavarapu
Requesting you to review the code and let us know if any changes to be done