play.filters {
cors {
pathPrefixes = ["/api", "/callback"]
}
csrf {
# Sets the cookie to be sent only over HTTPS
#cookie.secure = true
# Defaults to CSRFErrorHandler in the root package.
#errorHandler = MyCSRFErrorHandler
}
}
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/eb4fa884-2eb3-4695-837f-e7b9eb1f0b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/b067268e-0578-4713-9a18-23e6df8f7f91%40googlegroups.com.
But we are now an issue with JQUERY and the CORS filter. Why we bypass CORS allowedOrigins when the Origin is equal to the Host ? Now wa can process JQuery request from jsfiddle POST https://www.test.com/dashboard/upgrade-settings) but we can't process POST request from the same project (ie: POST /dashboard/upgrade-settings)
Maybe "isSameOrigin" method should be optionnal (ie: a new configuration key: ignoreSameOrigin = false) or juste removed ?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/7a3ca3ba-451c-48a0-860e-12b281e5a7a2%40googlegroups.com.