Closed sabinevidal closed 2 years ago
I experimented with different variations of the auth setup, ie with/out localhost in allowed_origins
, and with/out the .env
file and the TOKEN_KEYS
. Having both fixed the 500
error when trying to test the requests.
However, I still encountered a 403
error when submitting on the /detect
endpoint on my locally run site. I received the json results when testing the curl
request though.
DOC: Improving wording for instructions
allowed_origins
is, as like will take to GitHub, whereas devs might be working alongside on their local.api/model
is empty)' for downloading ML model instructions, to make this more clear instead of just 'one time'. Also so devs know where to look for the files. And covers for edge case where someone may change their git branch and don't stash the/model
file which then may be lost, which could cause confusion.DOC: improving auth section
.env
folder, not just update theallowed_origins
, as without the.env
folder the site threw a500
error when trying to check a word. Not sure if this is a feature or a bug.Making Request with Authorization Tokens
a level 2 header to differentiate it fromRunning locally
.