-
Notifications
You must be signed in to change notification settings - Fork 173
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
Access-Control-Allow-Origin issue #102
Comments
Is there anyone has the same issue can help me out |
I'm having a similar issue and additional warning, |
change apiai.js |
@zyzarvin1987 does your solution works, if sure can u please mention where should i need to change it.because i didn't see the above lines in apiai.js Thanks. |
@zyzarvin1987 I've confirmed this workaround enables you to get responses from dialogFlow, but you have to send your request to a third party, including the |
Just as an FYI, this is a server issue on Google's side. Hopefully they will fix it ASAP. You can install cors-anywhere as a module on a server you control if you need the proxy capabilities but don't want to send your data to a third party: (https://www.npmjs.com/package/cors-anywhere) |
My app Still not available for connect to dialoglflow. it works fine 3 days ago, what happend "Failed to load https://api.api.ai/v1/query?v=20150910: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9008' is therefore not allowed access." "Uncaught (in promise) ApiAiRequestError "Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.api.ai/v1/query?v=20150910 with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details." |
@bgbdsl Even I have the same issue. Can see the logs working for 3 days back. Today it has started giving CORS. Any luck yet? |
It seems like it fixed itself |
today, this issue happened again. |
this.uri = "https://cors-anywhere.herokuapp.com/" + this.apiAiClient.getApiBaseUrl() + "query?v=" + this.apiAiClient.getApiVersion(); this solution is not works, anybody, Is there anyone has the same issue can help me out |
@parkkichul got the same issue . Last time it resolved but now it's not working don't know why have to wait for the fix.. if anyone found the solution please share . thank you in advance. |
https://cors-anywhere.herokuapp.com/https://api.api.ai/v1/query?v=20150910, when I using cors-anywhere.herokuapp.com, it returned, "Missing required request header. Must specify one of: origin,x-requested-with" anybody help me out |
you should update your bot to v2 api, so you will not receive this issue any more |
@zyzarvin1987 is this module support v2. If so, tell me the procedure to migrate or any other module you know that support dialogflow v2 please ping me. thank you in advance |
Hi, I am running into a similar issue attempting to use dialogflow v2, I am new to using HTTP, what sort of information would be useful for debugging this? |
The proper fix is to stop using dialogflow-javascript-client on the client
side. Expose an endpoint in your backend app that will hand over the
requests from the client to dialogflow library and pass the response back
to client. This way you don't have to do any dramatic changes in your
client app logic when it comes to handling response.
Cheers,
Tomasz.
…On Tue, Aug 13, 2019, 22:46 Tasininet ***@***.***> wrote:
Hi, I am running into a similar issue attempting to use dialogflow v2, I
am new to using HTTP, what sort of information would be useful for
debugging this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#102?email_source=notifications&email_token=ADJAU5UK256L3BTDFSUA6ILQEML2VA5CNFSM4F3JI3WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4G5KQI#issuecomment-521000257>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJAU5WEJBLNBA5WABXE2NLQEML2VANCNFSM4F3JI3WA>
.
|
Failed to load https://api.api.ai/v1/query?v=20150910: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
The text was updated successfully, but these errors were encountered: