Does this fix cors?

This commit is contained in:
Robbe Van Herck 2020-05-13 18:37:15 +02:00
parent edf09757ae
commit 2feeaa10ec
1 changed files with 1 additions and 1 deletions

View File

@ -25,8 +25,8 @@ RANGE_NAME = CONFIG["Google"]["RANGE_NAME"]
CACHE_TIMEOUT = int(CONFIG["Cache"]["TIMEOUT"])
@app.route('/data.json')
@cross_origin()
@cache.cached(timeout=CACHE_TIMEOUT)
@cross_origin()
def data_json():
return google_sheet_to_json(SPREADSHEET_ID, RANGE_NAME)