Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up307 Temporary Redirect - CORS header ‘Access-Control-Allow-Origin’ missing #2458
Comments
|
Any update ? |
|
@unbyte i did already test that git contrib cors. CORS are not working for Temporary Redirects that's why i have to add it manually. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
How to reproduce
I am sending an AJAX request which has trailing slash redirect but it does not redirects because of CORS issue. I dig the code more and then i found that
gin.gofile hasredirectRequestfunctiongithub.com/gin-gonic/gin/gin.goif i add the the CORS header then the whole request works fine as you can see the screenshot under EXPECTATION section.How to resolve the issue without modifying the GIN core file ?
Expectations
Actual result
Environment