-
21 votesanswersviews
如何在Spring Boot中处理HTTP OPTIONS请求?
首先,我读过“How to handle HTTP OPTIONS with Spring MVC?”,但答案似乎并不直接适用于Spring Boot . 看起来我应该这样做: 通过将dispatchOptionsRequest设置为true来配置dispatcherServlet But how to do that ,假设我的代码(mentioned by this answer)中没有X... -
9 votesanswersviews
如何在nginx中处理“OPTIONS *”请求?
在我的环境中,我使用perlbal将请求重定向到nginx . 如果 verify_backend 已启用 . perbal会向nginx发送一个"OPTIONS *"请求,但是nginx会将其作为一个错误请求进行响应 . 根据RFC2616: 如果Request-URI是星号(“”),则OPTIONS请求通常应用于?服务器而不是特定资源 . 由于服务器的通信选项通常取决于... -
1 votesanswersviews
我应该如何表明我的HTTP服务器支持压缩请求?
我被要求通过压缩发送到服务器的数据来减少应用程序的带宽需求 . 我'm trying to do this transparently without changing the API, i.e. continuing to use the same URL and content type. I'已经找到了如何编码How do I enable GZIP compression for POST...