https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
general
  • k

    KatzRool

    08/16/2021, 3:48 AM
    I've edited the file, but get the same error with my domain
  • k

    KatzRool

    08/16/2021, 3:58 AM
    btw, I'm having to use sudo to build and run the app
  • k

    KatzRool

    08/16/2021, 4:05 AM
    it works without sudo for dev though
  • r

    rp

    08/16/2021, 1:28 PM
    @User the frontend is sending a request to localhost:3001. Is that your API domain? If yes, can I see the CORS you have set on in the api-server, and what is your website domain?
  • k

    KatzRool

    08/17/2021, 8:16 AM
    @User what I meant by this message is that I edited the api-server.js file:
    const apiPort = process.env.REACT_APP_API_PORT || 3001;                                                 const apiDomain = process.env.REACT_APP_API_URL || `https://auth.fumky.org:${apiPort}`;
    and now the firefox console is showing the same error but with my domain instead of localhost:
  • k

    KatzRool

    08/17/2021, 8:17 AM
    I don't have any issues when I run the software on my home desktop on localhost though
  • k

    KatzRool

    08/17/2021, 8:18 AM
    so I still think I did something wrong with nginx
  • r

    rp

    08/17/2021, 8:18 AM
    So what is your website domain?
  • r

    rp

    08/17/2021, 8:18 AM
    is it auth.fumky.org?
  • k

    KatzRool

    08/17/2021, 8:18 AM
    yes
  • r

    rp

    08/17/2021, 8:18 AM
    and your api domain is that too?
  • k

    KatzRool

    08/17/2021, 8:18 AM
    yes
  • r

    rp

    08/17/2021, 8:18 AM
    okay
  • k

    KatzRool

    08/17/2021, 8:18 AM
    both ports are open
  • r

    rp

    08/17/2021, 8:19 AM
    have you changed this too? https://github.com/supertokens/supertokens-demo-react/blob/emailpassword/api-server.js#L12
  • k

    KatzRool

    08/17/2021, 8:20 AM
    443, 3000, 3001 open 80 closed
  • k

    KatzRool

    08/17/2021, 8:20 AM
    yes
  • k

    KatzRool

    08/17/2021, 8:21 AM
    all instances of "localhost" in api-server.js, server.js and src/App.js have been replaced with my domain
  • r

    rp

    08/17/2021, 8:21 AM
    When the request is made, the browser must be making an OPTIONS API request first. Can I see the output of that request?
  • k

    KatzRool

    08/17/2021, 8:26 AM
    message has been deleted
  • k

    KatzRool

    08/17/2021, 8:26 AM
    message has been deleted
  • r

    rp

    08/17/2021, 8:27 AM
    did you add the port numbers in the apiDomain / websiteDomain correctly?
  • k

    KatzRool

    08/17/2021, 8:27 AM
    this is what I get when I manually send the OPTIONS request
  • k

    KatzRool

    08/17/2021, 8:27 AM
    I think so
  • k

    KatzRool

    08/17/2021, 8:29 AM
    const apiPort = process.env.REACT_APP_API_PORT || 3001;
    const apiDomain = process.env.REACT_APP_API_URL || `https://auth.fumky.org:${apiPort}`;
    const websitePort = process.env.REACT_APP_WEBSITE_PORT || 3000;
    const websiteDomain = process.env.REACT_APP_WEBSITE_URL || `https://auth.fumky.org:${websitePort}`
  • r

    rp

    08/17/2021, 8:39 AM
    hmmm
  • r

    rp

    08/17/2021, 8:41 AM
    what are the response headers for the OPTIONS request?
  • r

    rp

    08/17/2021, 8:41 AM
    you only showed me the request headers
  • u

    0xLtX1

    08/18/2021, 6:37 AM
    Hello there, I completed the general frontend and backend setup, and have both my servers running, but when i try to login or signup, I'm getting this error
  • u

    0xLtX1

    08/18/2021, 6:37 AM
    message has been deleted
Powered by Linen
Title
u

0xLtX1

08/18/2021, 6:37 AM
message has been deleted
View count: 2