# lesscoding_gateway **Repository Path**: chargeduck/lesscoding_gateway ## Basic Information - **Project Name**: lesscoding_gateway - **Description**: gateway - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-05 - **Last Updated**: 2025-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ```yaml server: port: 9999 spring: application: name: gateway-app cloud: nacos: config: server-addr: 127.0.0.1:8848 namespace: public file-extension: yaml discovery: server-addr: 127.0.0.1:8848 gateway: routes: - id: cila_baking_route uri: lb://cilaBaking predicates: - Path=/cilaBaking/** - id: chargeduck_route uri: lb://chargeDuck/** predicates: - Path=/chargeDuck/** - id: dld_route uri: lb://dld predicates: - Path=/dld/** # 全局的跨域处理 globalcors: # 解决options请求被拦截问题 add-to-simple-url-handler-mapping: true corsConfigurations: '[/**]': # 允许哪些网站的跨域请求 allowedOrigins: - "*" allowedMethods: # 允许的跨域ajax的请求方式 - "GET" - "POST" - "DELETE" - "PUT" - "OPTIONS" - "*" # 允许在请求中携带的头信息 allowedHeaders: "*" # 是否允许携带cookie allowCredentials: true # 这次跨域检测的有效期 maxAge: 360000 ```