Having problem with cors - Flask

Hi guys! I am trying to setup restrictions to only allow requests from a certain origin. This is how I have it currently setup but it still allows every request (testing with postman).
app = Flask(__name__)

cors = CORS(app, origins=["https://vetai.vercel.app/"])


@app.route("/")
def home():
    return "Hello, world!"


@app.route("/prompt", methods=["POST"])
def prompt():
    return "prompt route"


if __name__ == "__main__":
    app.run(debug=True)
image.png
Was this page helpful?