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

Add CORS Policy to /api and Log.php endpoints #573

Open
padams opened this issue Apr 29, 2020 · 0 comments · May be fixed by #603
Open

Add CORS Policy to /api and Log.php endpoints #573

padams opened this issue Apr 29, 2020 · 0 comments · May be fixed by #603
Labels
enhancement New feature or enhancement REST API

Comments

@padams
Copy link
Collaborator

padams commented Apr 29, 2020

Description

Right now certain REST API methods (PUT, DELETE, POST) cannot be be used by javascript code running under a domain differs from the domain of the OWA REST endpoint. For example. foo.com Javascript may POST data to an OWA Rest endpoint that is also running under foo.com. But attempts to POST data from foo.com fail if the endpoint is running under bar.com.

To handle cross domain PUT/DELETE/METHOD we need to add support for CORS to the /api and log.php endpoints.

Background:

https://www.moxio.com/blog/12/how-to-make-a-cross-domain-request-in-javascript-using-cors

@padams padams added enhancement New feature or enhancement REST API labels Apr 29, 2020
@Maaiins Maaiins linked a pull request May 17, 2020 that will close this issue
11 tasks
@Maaiins Maaiins linked a pull request May 17, 2020 that will close this issue
11 tasks
padams pushed a commit that referenced this issue Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement REST API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant