base: add allowed CORS origins for localhost:4321 (dev purposes); lyric_search: change typeahead to return a maximum of 10 results, prev. 100
This commit is contained in:
2
base.py
2
base.py
@ -26,7 +26,7 @@ app = FastAPI(
|
||||
constants = importlib.import_module("constants").Constants()
|
||||
util = importlib.import_module("util").Utilities(app, constants)
|
||||
|
||||
origins = ["https://codey.lol", "https://api.codey.lol"]
|
||||
origins = ["https://codey.lol", "https://old.codey.lol", "https://api.codey.lol", "https://_new.codey.lol", "http://localhost:4321"]
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware, # type: ignore
|
||||
|
Reference in New Issue
Block a user