cors icon indicating copy to clipboard operation
cors copied to clipboard

Go net/http configurable handler to handle CORS requests

Results 34 cors issues
Sort by recently updated
recently updated
newest added

For me the example code worked only after I included `AllowedHeaders`

The below example is a minor revised version of the one in the README: ```go package main import ( "net/http" "github.com/rs/cors" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w...

Guys, please, I'm all out of ideas. Nothing is working. The basic issue is the fact that requests get denied because it says that `Access-Control-Allow-Origin` header is missing. Problem is...

I need different CORS settings in 2 groups. This middleware works only at "router" level. The issue can be reproduced with the following code: ```golang package main import ( cors...

This PR add a wildcard option `*` to allow all methods specified in `Access-Control-Request-Method`. I was trying to access webdav files from [organice](https://organice.200ok.ch/). My preflight request is like this `curl...

Via echoing back all headers in a wrapped response writer since browsers don't currently support the wildcard. Fixes #79

Hello, I have a problem with CORS when I am trying to call my api from .local address ![Screenshot 2021-11-26 185850 (2)](https://user-images.githubusercontent.com/5782594/143624251-e376bccf-c2d1-4450-9459-f17bbad2abf4.png) I use mux and my setup for CORS...

Using the package and can not figure out why corsConfig is not applying to my localhost frontend. Any help will be much appreciated. ``` func main() { router := gin.Default()...

Hi there, My go skills are not super advanced, so I was wondering if there is a simple way to use this nice cors library with DefaultServeMux Would it be...

Just a suggestion, since wildcard for Access-Control-Expose-Headers isn't widely supported yet, I would recommend filling Access-Control-Expose-Headers in the AllowAll configuration with the result of whatever is set in the wrapped...