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

CSR1000v REST API Fails To Meet Section 3 Guidelines, Namely 3.5.1.9 #1

Open
ronnievsmith opened this issue Dec 6, 2016 · 6 comments

Comments

@ronnievsmith
Copy link

ronnievsmith commented Dec 6, 2016

Attempts at XHR/AJAX to the REST API fail due to CORS Reason: CORS header ‘Access-Control-Allow-Origin’ missing.

3.5.1.9 A service MUST support CORS simple and preflight request flows. Services SHOULD return "**" as the Access-Control-Allow-Origin header, unless the request is accompanied by an Origin header, in which case the service SHOULD return an Access-Control-Allow-Origin header with a value equal to that of the received Origin header. Services MUST NOT return an access-control-allow-credentials header in any HTTP response.

@ronnievsmith ronnievsmith changed the title CSR1000v REST API Fails To Meet 3 Guidelines, Namely 3.5.1.9 CSR1000v REST API Fails To Meet Section 3 Guidelines, Namely 3.5.1.9 Dec 6, 2016
@asgs
Copy link

asgs commented Mar 24, 2017

were those requests preflighted? Some servers don't respond with the CORS headers unless they think it's required to.

@ronnievsmith
Copy link
Author

ronnievsmith commented Mar 24, 2017 via email

@asgs
Copy link

asgs commented Mar 24, 2017

you should post the complete XHR dump to see what's going on.

@ronnievsmith
Copy link
Author

ronnievsmith commented Mar 24, 2017 via email

@asgs
Copy link

asgs commented Mar 24, 2017

well, you got it all figured out. The ways the XHRs are constructed look right. So it's a setting that any fronting webserver exposes, that need to be set.

By the way, I'm no way related to Cisco nor this particular GitHub project. I just randomly happen to visit this project because I was looking for information on SCIM implementation (from Cisco) and notice that one issue that was open (or ever opened) here. Thought I'd do something about it.

Best wishes for your future work!

@ronnievsmith
Copy link
Author

ronnievsmith commented Mar 24, 2017 via email

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