Skip to content

Commit

Permalink
added frontend to allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmypillow committed Aug 8, 2024
1 parent c22d6f0 commit 5760fb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ function App() {
const [cardList, setCardList] = useState([]);

async function GetTotalAttempts() {



await fetch('/api/attempts/total')
.then(response => response.json())
.then(data => setTotalAttempts(data.total_attempts))
Expand Down
2 changes: 1 addition & 1 deletion jrar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

ALLOWED_HOSTS = ['jrar.lostmypillow.duckdns.org', 'localhost', '0.0.0.0', 'jrar-latest.onrender.com']
ALLOWED_HOSTS = ['jrar.lostmypillow.duckdns.org', 'localhost', '0.0.0.0', 'jrar-latest.onrender.com', 'lostmypillow.github.io/jRAR']


# Application definition
Expand Down

0 comments on commit 5760fb0

Please sign in to comment.