Skip to content

CORS #210

Answered by vincentsarago
wburt asked this question in Q&A
CORS #210
Mar 6, 2025 · 3 comments · 2 replies
Discussion options

You must be logged in to vote
    headers = {
        "Origin": "https://example.org",
        "Access-Control-Request-Method": "GET",
        "Access-Control-Request-Headers": "X-Example",
    }
    import httpx
    httpx.get("https://stac.eoapi.dev/collections", headers=headers).headers
    >>> Headers({... 'access-control-allow-origin': '*', 'access-control-allow-credentials': 'true', ...})

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vincentsarago
Comment options

@vincentsarago
Comment options

Answer selected by wburt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants