Browse Source

Remove unused flask-cors usage

moritan 9 years ago
parent
commit
671ccc1a75
2 changed files with 0 additions and 3 deletions
  1. 0
    1
      requirements.txt
  2. 0
    2
      searx/rest-server.py

+ 0
- 1
requirements.txt View File

@@ -1,6 +1,5 @@
1 1
 flask
2 2
 flask-babel
3
-flask-cors
4 3
 requests
5 4
 lxml
6 5
 pyyaml

+ 0
- 2
searx/rest-server.py View File

@@ -9,10 +9,8 @@ from searx.searchAPI import Search
9 9
 from searx.version import VERSION_STRING
10 10
 from searx.languages import language_codes
11 11
 from searx.plugins import plugins
12
-from flask.ext.cors import CORS
13 12
 
14 13
 app = Flask(__name__, static_url_path="")
15
-cors = CORS(app, resources={r"/api/*": {"origins": "*"}})
16 14
 
17 15
 
18 16
 @app.errorhandler(400)