You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/08/16 03:17:44 UTC

[GitHub] 43noodles opened a new issue #875: 配置了cors,但还是提示No 'Access-Control-Allow-Origin' header

43noodles opened a new issue #875: 配置了cors,但还是提示No 'Access-Control-Allow-Origin' header
URL: https://github.com/apache/incubator-servicecomb-java-chassis/issues/875
 
 
   按官网的CORS配置了microservice.yaml,但还是无法进行跨域访问REST接口,不知道是哪里有问题,请帮忙指导下,谢谢!
   
   microservice.yaml如下:
   APPLICATION_ID: hotel
   service_description:
   # name of the declaring microservice
     name: noodles
     version: 0.0.1
   
   servicecomb:
     cors:
       enabled: true
       origin: "*"
       allowCredentials: false
       allowedMethod: GET,PUT,POST,DELETE
       maxAge: 3600
     service:
       registry:
         address: http://127.0.0.1:30100
     rest:
       address: 0.0.0.0:4040

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services