Reef-pi CORS

ColoredRock

Well-Known Member
View Badges
Joined
Aug 9, 2021
Messages
855
Reaction score
1,028
Location
Murrieta, CA (North of San Diego)
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
 
OP
OP
ColoredRock

ColoredRock

Well-Known Member
View Badges
Joined
Aug 9, 2021
Messages
855
Reaction score
1,028
Location
Murrieta, CA (North of San Diego)
Rating - 0%
0   0   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.
 

Managing real reef risks: Do you pay attention to the dangers in your tank?

  • I pay a lot of attention to reef risks.

    Votes: 138 43.1%
  • I pay a bit of attention to reef risks.

    Votes: 111 34.7%
  • I pay minimal attention to reef risks.

    Votes: 50 15.6%
  • I pay no attention to reef risks.

    Votes: 16 5.0%
  • Other.

    Votes: 5 1.6%
Back
Top