Skip to content

Commit b9827af

Browse files
committed
tried to resolve CORS error
1 parent b759fe6 commit b9827af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from scripts import search_query, recoms
66

77
app = Flask(__name__)
8+
app.config['CORS_HEADERS'] = 'Content-Type'
89
CORS(app, resources={r"*": {"origins": "*"}}, allow_headers="*", origin="*")
910

1011
api = Api(app)

0 commit comments

Comments
 (0)