Here's a tip: Instead of using api allorigins, use my unlimited block: URL block with no limits (unlike allorigins and cors-anywhere) or better:
from flask import Flask
from flask_cors import CORS
app = Flask(__name__
)
CORS(app)
Now any origin can access the HTML of your flask repl site.