Git Product home page Git Product logo

access-control-allow-origin---unblock's Introduction

This extension provides control over "XMLHttpRequest" and "fetch" methods by providing custom "access-control-allow-origin" and "access-control-allow-methods" headers to every requests that the browser receives. A user can toggle the extension on and off from the toolbar button. To modify how these headers are altered, use the right-click context menu items. You can customize what methods are allowed. The default option is to allow 'GET', 'PUT', 'POST', 'DELETE', 'HEAD', 'OPTIONS', 'PATCH' methods. You can also ask the extension not to overwrite these headers when the server already fills them. This extension also fixes CORS policies of redirected URLs.

YouTube Preview

YouTube Preview

Links:

access-control-allow-origin---unblock's People

Contributors

balvin-perrie avatar jefry 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

access-control-allow-origin---unblock's Issues

Feature request: add CSP Unblock

You can unblock CSP by the same way.
CORS uses Access-Control-Allow-Origin.
CSP uses content-security-policy, content-security-policy-report-only, x-webkit-csp, x-content-security-policy

Access-Control-Allow-Credentials is not working in Firefox

Sending credentials (cookies in my case) is not working when extension is enabled in Firefox

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://...’ . (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’).

All the default settings are set:
Access-Control-Allow-Origin: ''
Access-Control-Allow-Methods: 'GET, PUT, POST, DELETE, HEAD, OPTIONS, PATCH'
Access-Control-Allow-Methods: '
'
Access-Control-Allow-Credentials: 'true'
Access-Control-Expose-Headers: '*'

Actual Custom Methods

From what I could see, it is possible only to select from the predefined methods. Is it possible to type in our own custom method names (eg. XMETHOD)? I ask because there's a site that uses non-standard methods, and these are the ones to which I need access.

Thanks!

resolve CORS issue for HTTP ok status error

How to enable CORS to resolve the follow issue .
Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
below is the error message i am getting .
Access to XMLHttpRequest at 'http://167.254.204.232:9890/vnfpkgm/v1/vnf_packages' from origin 'http://app-ui-dev-env-venkateshc01.167.254.204.183.nip.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status

fails in Chrome 80

Hi,
I'm using Chrome 80.0.3987.132.

I'm trying to load a local html/javascript file that reads data from a remote server.
I get this error:

Access to XMLHttpRequest at 'https://www.calflora.org/app/userdata' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

support webdav http methods

I'm using CORS unblock with WEBDAV (https://tools.ietf.org/html/rfc2518). I need it to enable the following http methods, taken from rfc2518 section 8

  • PROPFIND
  • PROPPATCH
  • MKCOL
  • GET
  • HEAD
  • POST
  • DELETE
  • PUT
  • COPY
  • MOVE
  • LOCK

and headers, taken from section 9 "9 HTTP Headers for Distributed Authoring"

  • DAV
  • Depth
  • Destiation
  • If
  • No-tag-list
  • tagged-list
  • lock-token
  • overwrite
  • status-uri
  • timeout

In fact, I don't need all of those personally. But if possible, I'd like to be able to configure the CORS manipulation in the addon myself somehow. Is that possible?

Enable/disable plugin per site

First of all, thanks for the good work! The plugin helped me a lot to test my scraper.

As a feature request, it would be nice to enable/disable the plugin on a per-site basis. For instance, I had it enabled globally, forgot about it and them ran into trouble with Google Drive (strange errors while uploading).

Feature White list

I want to add a URL to the white list for the exception that will affect this add-on.

Feature: Cookie support

Thanks for the useful extension!

It would be great to have support for sending cookies with the proxied requests.

Right now, if you're hitting an endpoint on a domain on which you have cookies, the request will not contain cookies for that domain

Access-Control-Allow-Methods: * is non-cors compliant

'value': prefs.methods.length === self.DEFAULT_METHODS.length ? '*' : prefs.methods.join(', ')

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
string "*" can't be used in a response if web code uses XMLHttpRequest.withCredentials.

            'value': prefs.methods.length === self.DEFAULT_METHODS.length ? '*' : prefs.methods.join(', ')

should be changed to

            'value': prefs.methods.join(', ')

or somehow interlocked with "Access-Control-Allow-Credentials: true" rule

How about adding option to overwrite `origin` and `referer` in HTTP request header?

Thank you for this great extension!
This extension works perfect for most websites. But it seems some websites also checks origin and referer in the HTTP request header.
Is it possible to add an option to overwrite these 2 values in request header?
For example, if sending a request to https://example.com/sub/a.html, then rewrite the request header to:

origin: https://example.com
referer: https://example.com/sub/a.html

so that the request can be unblocked.
Thanks!

Reusable code

It would be nice to have only code to be usable between many projects without any storage and icons.
Maybe as Github gist or file in repo.

Enabling CORS Unblock in Firefox cause Twitter to block media uploads

I can't upload any media to Twitter when the extension is both enabled in Firefox's settings and its toolbar.

The Network tab in F12 tools shows that the uploads are blocked with CORS No Allow Credentials error.

Firefox versions: 93.0b6 and 93.0b7 (both Developer Editions)

This is most probably also related to #3 - Access-Control-Allow-Credentials doesn't work at all, either checked or unchecked.

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.