Skip to content
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

The 'Access-Control-Allow-Origin' header contains multiple values '*,*', but only one is allowed. Origin 'null' is therefore not allowed access. #3

Open
matrozzi opened this issue Sep 29, 2017 · 2 comments

Comments

@matrozzi
Copy link

Hi, I'm trying to implement this demo Bot but I'm getting this error:

The 'Access-Control-Allow-Origin' header contains multiple values ',', but only one is allowed. Origin 'null' is therefore not allowed access.

The "null" value appears when I try it from my PC, but from a Sharepoint Server I get the URL of that server.

It seems that's something to do with CORS, any suggestion on how to fix it?

Thanks!

@lapuball
Copy link

lapuball commented Nov 4, 2017

I am facing the similar issue too, did you get it working?

Failed to load XXXX: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

@matrozzi
Copy link
Author

matrozzi commented Nov 6, 2017

Hi lapuball ! Yes, I could solved it. I've found a line in the code (don't remember know if it was in openwhisk or widget) and commented it. Now my trial account expired, and I can't see it. But here I saw the code updated few days ago, and the line isn't there anymore. See the "Cors Update" comment. I think that they updated the code here to work.

I hope it helps !!
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants