vlead / feedback-portal

This is the portal, where all kinds of feedback related to a lab or an experiment is filled in.
Other
0 stars 11 forks source link

fixed cors origin issue #59

Closed ksripathi closed 6 years ago

ksripathi commented 6 years ago

@travula @lalitsanagavarapu

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

lalitsanagavarapu commented 6 years ago

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 notifications@github.com wrote:

@travula commented on this pull request.

In src/runtime/config/config.org https://github.com/vlead/feedback-portal/pull/59#discussion_r174351183:

@@ -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 https://github.com/vlead/feedback-portal/pull/59#pullrequestreview-103689753, or mute the thread https://github.com/notifications/unsubscribe-auth/ALBKUhZZwkF6IhH6uWQV8P3PZkIBTTY8ks5teJ9ggaJpZM4SoJEi .