This message was deleted.
# ask-for-help
s
This message was deleted.
🏁 1
l
Confirmed this behavior with docker generated by
bentoml containerize
, let me investigate this problem
Hi Kevin, seems that the problem is due to some bugs in our codes. Currently you can change the configuration file like the following to solve this problem:
Copy code
api_server:
  http:
    cors:
      enabled: true
      access_control_allow_origin: "<http://myorg.com|myorg.com>"
      access_control_allow_methods: ["GET", "OPTIONS", "POST", "HEAD", "PUT"]
      access_control_allow_credentials: true
      access_control_allow_headers: "*"
      access_control_allow_origin_regex: 'https://.*\.my_org\.com'
      access_control_max_age: 1200
      access_control_expose_headers: ["Content-Length"]
k
Thank you it seems that official documentation is different with code. 🙂 Problem solved
l
Yep the doc has some errors. We will fix it soon