From 289789326bd3fc23116ee45abda8de8b90040496 Mon Sep 17 00:00:00 2001 From: kaiyuran <73236245+kaiyuran@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:23:30 -0500 Subject: [PATCH] Revert "add cors" This reverts commit 0d021241156f361c0c46897d660db52207ed5f1e. --- app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app.py b/app.py index b8e340c..da7e3f9 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,4 @@ from flask import Flask, request, jsonify -from flask_cors import CORS import random def emojify(message): @@ -205,10 +204,9 @@ def emojify(message): app = Flask(__name__) -CORS(app) + @app.route('/getemoji', methods=['GET']) -# @cross_origin() def get_random_emoji(): # Get the 'letter' parameter from the URL message = request.args.get('message')