Skip to content

Flutter Web and Api init endpoint #1291

Answered by vinckr
nbeny asked this question in Q&A
Apr 28, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You get the error message:

The HTTP Request Header included the "Origin" key, indicating that this request was made as part of an AJAX request in a Browser. The flow however was initiated as an API request. To prevent potential misuse and mitigate several attack vectors including CSRF, the request has been blocked. Please consult the documentation.

You are using AJAX to submit the form. This is not supported right now. You need to submit a regular HTML form. Do not use AJAX. Do not use fetch. Let the user click the submit button and do not do anything. AJAX will be better supported very soon.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nbeny
Comment options

@vinckr
Comment options

@nbeny
Comment options

@ghost
Comment options

Answer selected by nbeny
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