Socket
Socket
Sign inDemoInstall

com.windhc:cors-spring-boot-starter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.windhc:cors-spring-boot-starter

spring-boot-starter cors


Version published
Maintainers
1
Source

CORS与Spring Boot集成

使用方法

  • 添加依赖
compile group: "com.windhc", name: "cors-spring-boot-starter", version: "1.0.0"

配置

# 必选。启用cors,值是一个布尔值
cors.enabled=
# 必选。它的值要么是请求时Origin字段的值,要么是一个*,表示接受任意域名的请求
cors.allow-origin=
# 可选。配置Access-Control-Allow-Headers/Access-Control-Expose-Headers
cors.allow-headers=
# 可选。配置Access-Control-Allow-Credentials,默认值false,表示是否允许发送Cookie
cors.allow-credentials=

FAQs

Package last updated on 09 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc