Commit f6e5b0a2 authored by Jiabo Li's avatar Jiabo Li
Browse files

Added CORS to fix a bug

parent d6423657
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
from flask import Flask, request
from flask_cors import CORS
import socket

app = Flask(__name__)
CORS(app)  # Add this line to enable CORS

@app.route('/send_message', methods=['POST'])
def send_message():