zoukankan      html  css  js  c++  java
  • kong dashboard UI 的使用 (使用kong 对服务*,以及解决跨域问题)

    7.2Choose Security and click on ADD PLUGIN in cors,then don’t input content and click on ADD PLUGIN button directly.

    第一步登录:

      第二步: 设置你需要代理的ip 和端口

    2.3.3Add Service
    1.open kong dashboard http://10.160.3.48:7999
    2.Click on ADD NEW SERVICE button to add a new service.

    3.Set value for the service,then click on SUBMIT SERVICE button.
       Port: change to your service’s port.

    设置路由:

    4.Click on serviceName to set route. Such as userService.

    6.Set route info for the service.
       Path: change the paths value.
       Method: input a method ,need to click on ENTER key.
            HEAD,GET,POST,DELETE,PUT,OPTIONS,PATCH

     设置访问代理服务的路径, 然后通过10.160.3.48:8000/user    访问服务

      //设置允许跨域

    7.Set cors for service which will be called by UI service.such as: user service,role service.

    7.1click on ADD PLUGIN

    7.2Choose Security and click on ADD PLUGIN in cors,then don’t input content and click on ADD PLUGIN button directly.

    访问你的服务:http    :      http://kongIP:8000/路由到服务的path

                             https   :     https://kongIP:8443/路由到服务的path

  • 相关阅读:
    模板-树链剖分
    bzoj2523 聪明的学生
    P1220 关路灯
    BZOJ3572 [Hnoi2014]世界树
    BZOJ4013 [HNOI2015]实验比较
    BZOJ4012 [HNOI2015]开店
    BZOJ4011 [HNOI2015]落忆枫音
    BZOJ4009 [HNOI2015]接水果
    BZOJ4010 [HNOI2015]菜肴制作
    BZOJ4008 [HNOI2015]亚瑟王
  • 原文地址:https://www.cnblogs.com/lshan/p/10913154.html
Copyright © 2011-2022 走看看