Hey everyone, I have setup cerbos in my local mac...
# help
d
Hey everyone, I have setup cerbos in my local machine using docker-compose as mentioned in above message and while trying to connect to cerbos using the js sdk I am getting cors error as
Copy code
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <http://localhost:3592/api/check/resources>. (Reason: CORS request did not succeed). Status code: (null).
And my updated config file is as below:
Copy code
---
storage:
  driver: "disk"
  disk:
    directory: /policies
    watchForChanges: true

server:
  playgroundEnabled: true
  httpListenAddr: ":3592"
  grpcListenAddr: ":3593"
  cors:
    allowedHeaders: ['content-type'] 
    allowedOrigins: ['*']
    disabled: false
    maxAge: 10s
d
Please check this thread.