These are chat archives for spring-cloud/spring-cloud

13th
Oct 2016
Dreampie
@Dreampie
Oct 13 2016 06:37
spring:
  mvc:
    dispatchOptionsRequest: true
zuul for options method always 404, dispatch not work?
Dreampie
@Dreampie
Oct 13 2016 07:17
403
Marcos Barbero
@marcosbarbero
Oct 13 2016 08:08
@Dreampie do have your zuul application any security configure?
Dreampie
@Dreampie
Oct 13 2016 08:08
server:
  port: 8090

spring:
  mvc:
    dispatchOptionsRequest: true

eureka:
  client:
    registerWithEureka: false

zuul:
  routes:
    user-api-provider:
      path: /usr/**
      stripPrefix: false
    common-api-provider:
      path: /cmn/**
      stripPrefix: false
    log-api-provider:
      path: /log/**
      stripPrefix: false
    ddcms-api-provider:
      path: /ddcms/**
      stripPrefix: false
    area-api-provider:
      path: /are/**
      stripPrefix: false
    limit-api-provider:
      path: /lmt/**
      stripPrefix: false
    tag-api-provider:
      path: /tag/**
      stripPrefix: false
no security configure
now I write a filter to allow cors
Marcos Barbero
@marcosbarbero
Oct 13 2016 08:09
I’m asking that because some time ago I faced same issue but I had security on it
Dreampie
@Dreampie
Oct 13 2016 08:33
zuul how can strip referer and origin , now my service receive was zuul ip:port
Dreampie
@Dreampie
Oct 13 2016 08:46
no it's host header changed to zuul ip:port
Dreampie
@Dreampie
Oct 13 2016 08:54
@marcosbarbero do you know something about this?
Mesut
@mesut
Oct 13 2016 16:45
do you have any idea ?