Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spring boot put invalid cors request

@Override
public void addCorsMappings(CorsRegistry registry) {
	registry.addMapping("/api/**")
		.allowedOrigins("http://domain2.com")
		.allowedMethods("PUT", "DELETE")
			.allowedHeaders("header1", "header2", "header3")
		.exposedHeaders("header1", "header2")
		.allowCredentials(false).maxAge(3600);
}Copied
Comment

PREVIOUS NEXT
Code Example
Java :: java check if year is leap 
Java :: java code for scientific calculator GUI 
Java :: setimageuri crash 
Java :: windows Jmeter java.net.BindException: Address already in use: connect 
Java :: JAVA Character Literals 
Java :: springbootservletinitializer maven dependency 
Java :: resurce leak java 
Java :: how to remove scroll pane border 
Java :: variables in java 
Java :: object type in java 
Java :: euclidean algorithm java recursive 
Java :: java array merge 
Java :: arraylist to primitive array 
Java :: exception handling in java 
Java :: java border 
Java :: enable cors on apache tomcat 
Java :: math.sin in java 
Java :: Printing cube root of a number in java 
Java :: HashMap to store key and value pair. 
Java :: android studio find all views in layout 
Java :: UPLOAD TEXTFILE USING CYPERTEXT USING JAVA 
Java :: click on recyclerview item android animation 
Java :: 2048 java code 
Java :: get field name java 
Java :: getstring java 
Java :: Java Remove ArrayList Elements 
Java :: insertion sort java 
Java :: lambda expression java 
Java :: unresolved reference activity_main 
Java :: How to Initialize Arrays in Java? 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =