Giter Site home page Giter Site logo

test-cors.org's People

Contributors

gitname avatar manavo avatar monsur avatar rmm5t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

test-cors.org's Issues

Add a way to test Access-Control-Allow-Origin: *

Using a wildcard ("*") in Access-Control-Allow-Origin Header bears special meaning within the CORS specification.

It would be interesting to be able to play with this option, notably to check the behaviour of different browsers.

For example,
adding an "Allow Origin" field in the "Local" Server part,
with an option to "mirror" the requesting origin,
or to specify a text field where we can put a specific value, including the wildcard "*".

JS and page refers to non-existing "OPTION" method

Hi,

The CORS spec requires preflight requests that use the HTTP method OPTIONS.

This page, and the JS generated by it, attempts to use the HTTP method OPTION. But there is no such HTTP method and this is not a correct CORS preflight request.

Improve support for XDomainRequest

If the user is using the XDomainRequest object (i.e. they are visiting from IE8 or IE9), the options should be in line with what is supported in XDomainRequest. For example, only GET/POST methods are supported, and request headers can't be set. Also show a warning message to let the know about the limitations.

Add jquery example

Add a page that demonstrates making CORS requests via JQuery. Also include snippets of the jquery code for making the CORS request.

Preflight

It is not clear to me how to generate a preflight check?

nice work!

Fired XHR event: error

Hi, I'm using a url shortener (custom hosted Yourls). When I do a GET, I get an error

How do I see what's the issue.

Sending GET request to https://xxx.com/test
Fired XHR event: loadstart
Fired XHR event: readystatechange
Fired XHR event: error

XHR status: 0
XHR status text:
Fired XHR event: loadend

Parse information

Why does this dump the output directly? Shouldn't this list the origins allowed and the various capabilities?

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hello, good morning. How are you

If you can help me

I accessed the following service

http://www.test-cors.org/#?client_method=GET&client_credentials=false&server_url=http%3A%2F%2Fhom.vivo.ddivulga.com%2Ftrk%2Fc%3FadvId%3D1460%26impressionId%3D6c9dda44-bfd9-43e8-ae43-b544ab2099d4%26pageId%3D650602%26track%3Dtrue%26eventType%3Dvast%26url%3Dhttps%3A%2F%2F00px.net%2Fvpaid%2FeyJjciI6Njc0MDMsImNhIjo0MDI5LCJwbCI6NTE5Mjl9%2Fvpaid.xml%3Fduration%3D30%26skip%3Dfalse%26width%3D640%26height%3D360&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

But when entering the URL the error is returned

Access to XMLHttpRequest at 'http://hom.vivo.ddivulga.com/trk/c?advId=1460&impressionId=6c9dda44-bfd9-43e8-ae43-b544ab2099d4&pageId=650602&track=true&eventType=vast&url=https://00px.net/vpaid/eyJjciI6Njc0MDMsImNhIjo0MDI5LCJwbCI6NTE5Mjl9/vpaid.xml?duration=30&skip=false&width=640&height=360' from origin 'http://www.test-cors.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

You know how to tell me how to solve the situation

Captura de tela de 2020-08-28 12-12-02

Headers not being sent

I added a header to my request, but it's not showing at all in the network tab of chrome's dev tools. It's also not showing on my server. I'm trying to add:
auth: somerandomlettersandnumbers
and I have a ": " between the key and value, and no quotes.

Documentation

It seemed unclear to me, after enter a URL, whether the answer was yes or no.

Fired XHR event: loadstart
Fired XHR event: readystatechange
Fired XHR event: progress
Fired XHR event: error

XHR status: 0
XHR status text:
Fired XHR event: loadend

Should I understand that Cors is enabled on my server or not?

"Enable CORS" checkbox does not work

when I click "local" and then click "enable cors" check box I would assume "Access-Control-Allow-Origin" would be added to the headers and looks to still fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.