Skip to content

Browsers and Cross Origin Headers #75

Description

@GoogleCodeExporter
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 tristan....@gmail.com on 11 Jun 2014 at 8:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions