Skip to content

Change CORS default pattern? #218

@mdavidsaver

Description

@mdavidsaver

Could the default CORS list be changed to *?

############################## CORS settings ##############################
# Comma separated list of origins allowed to do CORS requests.
# Defaults to http://localhost:3000 (NodeJS development), but must be augmented
# with the origin(s) on which the web front-end is deployed.
#cors.allowed.origins=http://localhost:3000

/**
* Specifies the allowed origins for CORS requests. Defaults to http://localhost:3000,
* which is useful during development of the web front-end in NodeJS.
*/
@Value("${cors.allowed.origins:http://localhost:3000}")
private String corsAllowedOrigins;

headers.add("Access-Control-Allow-Origin", corsAllowedOrigins);

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions