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

Browsers and Cross Origin Headers #75

Open
GoogleCodeExporter opened this issue Apr 28, 2015 · 0 comments
Open

Browsers and Cross Origin Headers #75

GoogleCodeExporter opened this issue Apr 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run `davserver -D /tmp -n -J`
2. Create an empty file in `/tmp/hello`
3. Open a web page on `localhost:8000` for instance
4. Do an simple ajax GET request to `http://localhost:8008/hello`

What is the expected output? What do you see instead?

The GET response was expected with status code 200.
Got status code 0 with: "Cross-Origin Request Blocked: The Same Origin Policy 
disallows reading the remote resource at http://localhost:8008/. This can be 
fixed by moving the resource to the same domain or enabling CORS." (on Firefox)

What version of the product are you using? On what operating system?

PyWebDav 0.9.8, Firefox 29.0.1, Arch Linux

Please provide any additional information below.

Why not to add a `-a 'My-Custom-Header: Hello'` option to let user to add their 
own specific access control headers. Or something like `--cors`.

Original issue reported on code.google.com by [email protected] on 11 Jun 2014 at 8:24

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

1 participant