Skip to content

'Access-Control-Allow-Origin' header not being sent #406

Answered by jplatte
SelectSweet asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I didn't pick on up it before, but the problem is actually with your allowed origin, it's not a valid origin at all! An origin never includes the path. You just have to change to .allow_origin("http://localhost:3000".parse::<HeaderValue>().unwrap()).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SelectSweet
Comment options

@jplatte
Comment options

jplatte Sep 8, 2023
Collaborator

Answer selected by SelectSweet
@SelectSweet
Comment options

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