Skip to content

Note on quoting cors headers is misleading #1172

@williamhoyle

Description

@williamhoyle

Description:

Minor documentation issue.

The Cors Configuration section of the SAM model doc has the following note:

NOTE: HTTP spec requires the value of Allow properties to be a quoted string. So don't forget the additional quotes in the value. ie. "'www.example.com'" is correct whereas "www.example.com" is wrong

The http spec doesn't require the allow properties to be a quoted string. The reason that the values need to be quoted here is so that they are interpreted as literal values (i.e. not templates).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions