New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.ge.predix:spring-cors-filter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.ge.predix:spring-cors-filter

Cors Filter to be used for cross origin requests

  • 2.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Spring CORS Filter

This project provides a spring filter to enable CORS.

##LICENSE

This project is licensed under Apache v2.

##Build

mvn clean package

Run Integration Tests

mvn clean verify

Setup

  • Add maven pom dependency in the client service:
	<dependency>
            <groupId>com.ge.predix</groupId>
            <artifactId>spring-cors-filter</artifactId>
            <version>2.0.0</version>
        </dependency>
  • Configure properties:
cors.xhr.allowed.uris=<<put value here like...^/v2/api-docs$>>
cors.xhr.allowed.origins=<<put value here like....^.*\\.example\\.domain\\.ge\\.com$,^.*\\.predix\\.io$>>
cors.xhr.allowed.headers=<<put value here like...Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,
Access-Control-Request-Headers,Authorization,username,data>>
cors.xhr.controlmaxage=<<put value here like...1728000L>>
cors.xhr.allowed.methods:<<put value here like...GET,OPTIONS>>
  • Add a @ComponentScan annotation with base package entry of "com.ge.predix.web.cors". Example:
@ComponentScan(basePackages = {"com.ge.predix.web.cors"})

FAQs

Package last updated on 15 Apr 2022

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc