Reef-pi CORS

ColoredRock

Well-Known Member
View Badges
Joined
Aug 9, 2021
Messages
856
Reaction score
976
Location
Murrieta, CA (North of San Diego)
What state or country do you live in
California
Rating - 0%
0   0   0
Im I being a bone head.. trying to access the api from another box other then the raspberry pi....


curl -X OPTIONS -I -H "Origin: http://localhost:3000" -H "Access-Control-Request-Method: POST" http://10.xx.xx.xx/auth/signin

HTTP/1.1 405 Method Not Allowed
Date: Wed, 22 Mar 2023 07:13:23 GMT
Content-Length: 0
 
I think im the bone head.. I cant even:

curl -X POST -c cookie.txt -d '{"user":"reef-pi", "password":"reef-pi"}' http://reef-pi.local/auth/signin curl -b cookie.txt http://reef-pi.local/api/equipment

I messed up something. What I get for mucking around, when I should have gone to bed.
 

TOP 10 Trending Threads

IF YOU HAD TO OPERATE EVERYTHING ELSE MANUALLY, WHICH AUTOMATED SYSTEM WOULD YOU KEEP?

  • Auto top-off

    Votes: 46 56.1%
  • Automated dosing

    Votes: 6 7.3%
  • Mechanical filtration / roller filter

    Votes: 4 4.9%
  • Automated water testing

    Votes: 3 3.7%
  • Automatic feeding

    Votes: 1 1.2%
  • Lighting schedule

    Votes: 15 18.3%
  • Controller and remote monitoring

    Votes: 3 3.7%
  • Leak detection and emergency shutoff

    Votes: 1 1.2%
  • Automatic water changes

    Votes: 2 2.4%
  • None. I prefer to operate everything manually

    Votes: 0 0.0%
  • Something else (explain in the comments)

    Votes: 1 1.2%
Back
Top
Home
Post thread…
Market
What's new