Answers for "cors chrome extension"

-2

install cors

npm install cors
Posted by: Guest on April-21-2021
0

run chrome without cors

$ open -a Google Chrome --args --disable-web-security --user-data-dir
Posted by: Guest on March-08-2020
0

disable cors chrome

$ google-chrome --disable-web-security
Posted by: Guest on March-30-2021
3

disable cors chrome

open -na Google Chrome --args --user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security
Posted by: Guest on March-30-2021
0

Install Cors

$ npm i express cors
Posted by: Guest on October-04-2021
0

enable cors

@Configuration
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
    @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);
    }
}
Posted by: Guest on May-24-2021

Browse Popular Code Answers by Language