renator commited on
Commit
0eb33b2
·
1 Parent(s): e2882d6

Update settings.py

Browse files
Files changed (1) hide show
  1. config/settings.py +4 -4
config/settings.py CHANGED
@@ -50,9 +50,9 @@ INSTALLED_APPS = [
50
 
51
  CORS_ALLOW_ALL_ORIGINS = True # If this is used then `CORS_ALLOWED_ORIGINS` will not have any effect
52
  CORS_ALLOW_CREDENTIALS = True
53
- CORS_ALLOWED_ORIGINS = [
54
- 'https://undetectable-voice-clone.hf.space', "http://94.101.98.237:7860"
55
- ]
56
 
57
  REST_FRAMEWORK = {
58
  'DEFAULT_AUTHENTICATION_CLASSES': [
@@ -76,6 +76,7 @@ SWAGGER_SETTINGS = {
76
  X_FRAME_OPTIONS = 'ALLOW-FROM https://huggingface.co/'
77
 
78
  MIDDLEWARE = [
 
79
  'django.middleware.security.SecurityMiddleware',
80
  'django.contrib.sessions.middleware.SessionMiddleware',
81
  'django.middleware.common.CommonMiddleware',
@@ -83,7 +84,6 @@ MIDDLEWARE = [
83
  'django.contrib.auth.middleware.AuthenticationMiddleware',
84
  'django.contrib.messages.middleware.MessageMiddleware',
85
  'django.middleware.clickjacking.XFrameOptionsMiddleware',
86
- 'corsheaders.middleware.CorsMiddleware',
87
  ]
88
 
89
  ROOT_URLCONF = 'config.urls'
 
50
 
51
  CORS_ALLOW_ALL_ORIGINS = True # If this is used then `CORS_ALLOWED_ORIGINS` will not have any effect
52
  CORS_ALLOW_CREDENTIALS = True
53
+ # CORS_ALLOWED_ORIGINS = [
54
+ # 'https://undetectable-voice-clone.hf.space', "http://94.101.98.237:7860" ,"https://voice-clone-frontend.vercel.app" ,"https://voice.undetectable.ai" ,"https://api.voice.undetectable.ai"
55
+ # ]
56
 
57
  REST_FRAMEWORK = {
58
  'DEFAULT_AUTHENTICATION_CLASSES': [
 
76
  X_FRAME_OPTIONS = 'ALLOW-FROM https://huggingface.co/'
77
 
78
  MIDDLEWARE = [
79
+ 'corsheaders.middleware.CorsMiddleware',
80
  'django.middleware.security.SecurityMiddleware',
81
  'django.contrib.sessions.middleware.SessionMiddleware',
82
  'django.middleware.common.CommonMiddleware',
 
84
  'django.contrib.auth.middleware.AuthenticationMiddleware',
85
  'django.contrib.messages.middleware.MessageMiddleware',
86
  'django.middleware.clickjacking.XFrameOptionsMiddleware',
 
87
  ]
88
 
89
  ROOT_URLCONF = 'config.urls'