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

set Access-Control-Allow-Origin to '*' for data only endpoints #3182

Open
mralext20 opened this issue Oct 13, 2021 · 3 comments
Open

set Access-Control-Allow-Origin to '*' for data only endpoints #3182

mralext20 opened this issue Oct 13, 2021 · 3 comments
Labels
Tweak Minor tweak

Comments

@mralext20
Copy link
Contributor

Is your tweak request related to a problem? Please describe.

as I'm working on an external-to-neos tool, ( neos.alext.duckdns.org/priority ), using the Neos API directly is not presently possible. i was relying on a 3rd party tool to make a request, then send it back, however this service has recently stopped working for this purpose.

Describe what would you like tweaked

add the Access-Control-Allow-Origin header to (at the least!) data based endpoints (e.g. api/stats/priorityIssues ), to allow external websites to retrieve data from the neos API's data only (non-authorized) endpoints.

Describe alternatives you've considered

..build a mirror service on neos.alext.duckdns.org that simply mirrors the required endpoints.

Additional context

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin ;
image

i originally mentioned this to prime during a recent office hours, and was requested to make a ticket.

@mralext20 mralext20 added the Tweak Minor tweak label Oct 13, 2021
@ProbablePrime
Copy link
Collaborator

This seemed to work awhile ago, did our move to cloudflare break you?

@mralext20
Copy link
Contributor Author

It might have. The 3rd party service I was using returns a 401 unauthorized now for the endpoint.

@Psychpsyo
Copy link
Contributor

I can't say if it was the move to cloudflare but I just tried to use the API and it's broken on my end as well:
image

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

No branches or pull requests

3 participants