Lennox Kanyoe Kahati commited on
Commit
cb34f98
·
1 Parent(s): 53711d7

Fix: correct CORS configuration (disabled credentials for wildcard origins) to resolve connectivity issues in browsers

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ load_dotenv()
39
  app = Flask(__name__)
40
  app.secret_key = 'adaptive_learning_secret_key_2024'
41
  # Allow all origins and methods for the API to ensure mobile browsers work correctly
42
- CORS(app, resources={r"/api/*": {"origins": "*"}}, supports_credentials=True)
43
 
44
  # Initialize components
45
  transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
 
39
  app = Flask(__name__)
40
  app.secret_key = 'adaptive_learning_secret_key_2024'
41
  # Allow all origins and methods for the API to ensure mobile browsers work correctly
42
+ CORS(app, resources={r"/api/*": {"origins": "*"}}, supports_credentials=False)
43
 
44
  # Initialize components
45
  transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")