修改跨域问题

parent 9578f2b7
......@@ -18,14 +18,13 @@ import java.util.Set;
* 支持跨域
*/
@Component
@Order(Ordered.HIGHEST_PRECEDENCE)
@Configuration
public class CrosFilter implements Filter {
private static final Set<String> DISALLOWED_METHOD = new HashSet<>();
static {
//DISALLOWED_METHOD.add("OPTIONS");
DISALLOWED_METHOD.add("OPTIONS");
DISALLOWED_METHOD.add("PUT");
DISALLOWED_METHOD.add("DELETE");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment