I'm not able to embed my flask web app in google sites.
I've tried the following, which adds some headers using talisman, but it still doesn't work:
# A very simple Flask Hello World app for you to get started with...
from flask import Flask
from flask_talisman import Talisman, ALLOW_FROM
app = Flask(__name__)
talisman = Talisman(app)
@app.route('/')
@talisman (
frame_options='ALLOW-FROM',
frame_options_allow_from='*',
)
def hello_world():
return 'This is a site on Flask!'
On the google site side, it says the URL is invalid and it will display it as a link. When I click the link, it works, so the issues appears to be that it is not able to embed it.
Any idea what I might be doing wrong? Is there a setting somewhere else to allow my webapp to be embeddable?