Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Allow cross-origin requests to feedback endpoint. #891

Merged
merged 1 commit into from
Oct 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openfecwebapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from flask.views import MethodView
from flask import request, render_template, jsonify
from flask.ext.cors import cross_origin

from webargs import fields
from webargs.flaskparser import use_kwargs
Expand Down Expand Up @@ -111,6 +112,8 @@ def validate_referer(referer):

class GithubView(MethodView):

decorators = [cross_origin()]

@cached_property
def repo(self):
client = github3.login(token=config.github_token)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Flask==0.10.1
Flask-BasicAuth==0.2.0
Flask-Cors==2.1.0
Flask-SSLify==0.1.5
furl==0.4.5
github3.py==0.9.4
Expand Down