Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Cookie Header contains Enum instead of String for SameSite #16

Open
rauberdaniel opened this issue Sep 14, 2021 · 1 comment · May be fixed by #23
Open

Cookie Header contains Enum instead of String for SameSite #16

rauberdaniel opened this issue Sep 14, 2021 · 1 comment · May be fixed by #23
Labels
bug Something isn't working

Comments

@rauberdaniel
Copy link

The SameSite Parameter of the Cookie Header contains the "SameSiteEnum." prefix of the enum instead of just the string:

image

@jordanisaacs jordanisaacs mentioned this issue Sep 15, 2021
4 tasks
@jordanisaacs jordanisaacs added the bug Something isn't working label Sep 15, 2021
@mybigman
Copy link

This should fix it.

class CookieParameters(BaseModel):
    ...

    class Config:
        use_enum_values = True
        validate_all = True

@mahmednabil109 mahmednabil109 linked a pull request Nov 28, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants