Build a from a Configuration
Build a from a Configuration
The configuration is as follows:
play.filters.cors { pathPrefixes = ["/myresource", ...] # ["/"] by default allowedOrigins = ["http://...", ...] # If null, all origins are allowed allowedHttpMethods = ["PATCH", ...] # If null, all methods are allowed allowedHttpHeaders = ["Custom-Header", ...] # If null, all headers are allowed exposedHeaders = [...] # empty by default supportsCredentials = true # true by default preflightMaxAge = 1 hour # 1 hour by default }
Helpers to build CORS policy configurations