Skip to content

Commit

Permalink
Added CORS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Stintipacchio committed Mar 8, 2024
1 parent 661f55e commit f1f5a6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Interface/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# app.logger.error('testing error log')
# app.logger.info('testing info log')
from flask import Flask, render_template, request, jsonify
from flask_cors import CORS
import requests
import json
import os
Expand All @@ -14,6 +15,7 @@
load_dotenv(dotenv_path)

app = Flask(__name__)
CORS(app)

# Leggi l'endpoint dall'ambiente
endpoint = os.getenv('ENDPOINT')
Expand Down

0 comments on commit f1f5a6a

Please sign in to comment.