Skip to content

Commit

Permalink
Added wildcard ACAO header to enable CORS for the web API.
Browse files Browse the repository at this point in the history
  • Loading branch information
chqr1y authored Jun 9, 2020
1 parent f615cb8 commit 553eb08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions REQUIREMENTS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ requests
# web
flask
flask-restful
flask-cors
flasgger
dicttoxml
XlsxWriter
Expand Down
2 changes: 2 additions & 0 deletions recon/core/web/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask, cli, render_template
from flask_cors import CORS
from flasgger import Swagger
from recon.core import base
from recon.core.constants import BANNER_WEB
Expand Down Expand Up @@ -41,6 +42,7 @@ def create_app():
app = Flask(__name__, static_url_path='')
app.config.from_object(__name__)

CORS(app)
Swagger(app, template_file='definitions.yaml')

app.redis = Redis.from_url(app.config['REDIS_URL'])
Expand Down

0 comments on commit 553eb08

Please sign in to comment.