New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing origin error #93
Comments
Have you tried with |
I have the same problem. |
😢 |
Same here |
Edit: I was trying to call HTTP in production instead of HTTPS. So it had nothing to do with cors, it was failing because Heroku (where the app is hosted) wouldn't allow HTTP calls. Sorry to comment on here. |
I'm running out of ideas as well after +6h... |
My problem was with proxy plugins, i was using proxy plugin in my browser, and that plugin was removing all headers about CORS, i disable it and now it's working. |
Having basically the same issue, just trying to send a simple fetch API call with an |
CORS need set origin header.
|
Set the |
This worked for me. Thanks @hidayats10! |
same issue i face |
Doesn't that just keep the error message from appearing in the output? (i.e. it does not resolve the underlying problem) |
does anyone solve this ? |
Strangely enough I started getting response data after setting the Debug option to false so that's that. |
I'm not blaming anybody, but there seems to be much confusion in this issue. The lack of a minimal reproducible example doesn't help. Here is my two cents. In v1.10.1 at least, the following message
is logged only if
If the request is same-origin, it doesn't participate in the CORS protocol and the absence of an The log message above does not indicate whether your CORS middleware is well or badly configured. Whatever dysfunctional CORS configuration you're trying to troubleshoot doesn't stem from the value of the
I'd be very curious to see a minimal reproducible example (perhaps in the form of one or two tests cases; see |
Guys, please, I'm all out of ideas. Nothing is working.
The basic issue is the fact that requests get denied because it says that
Access-Control-Allow-Origin
header is missing. Problem is that everything worked fine until it didn't for whatever reason. Some requests make it through, some just get ignored.Here's my configuration to start with:
Whenever we receive a request in production, I get the following error:
[cors] 2020/03/02 11:55:06 Actual request no headers added: missing origin
If I log the origin in the
AllowOriginFunc
function, the origin is present.The request itself is a basic
GET
method request using JSfetch
:The text was updated successfully, but these errors were encountered: