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

Enable Public CORS Policy on all Controllers #430

Closed
tristanmkernan opened this issue Mar 5, 2017 · 3 comments
Closed

Enable Public CORS Policy on all Controllers #430

tristanmkernan opened this issue Mar 5, 2017 · 3 comments

Comments

@tristanmkernan
Copy link
Contributor

i.e. for projects

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://c4sg.herokuapp.com/api/projects/all. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
@arpitsrm
Copy link
Collaborator

arpitsrm commented Mar 7, 2017

Hi,
I do not get this issue in my local. Getting the expected response and the code has the @crossorigin annotated on every endPoint already.

@Code4SocialGood
Copy link
Owner

@arpitsrm, You are correct. CrossOrigin should have been taken care of at backend, so that localhost:4200 could communicate successfully with localhost:8080. I assume @russon77 is looking into frontend on how to address the error, he might provide some hints if changes are expected at backend.

@Code4SocialGood
Copy link
Owner

This issue was moved to Code4SocialGood/c4sg-services#7

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

No branches or pull requests

4 participants