diff --git a/print.py b/print.py index fd142ef..425b40c 100644 --- a/print.py +++ b/print.py @@ -4,6 +4,7 @@ import socket import json import os from flask import Flask, render_template +from flask_cods import CORS CheckPrinterOnline = '7e4d3630312053310d0a' MachingInfo = "7e4d3131350d0a" @@ -17,6 +18,7 @@ HOST = os.environ.get('IPADDR') # The server's hostname or IP address PORT = 8899 # The port used by the server application = Flask(__name__) +CORS(application) application.config["DEBUG"] = True def checkPrinterOnline():