Pebbling Club 🐧🪨

  • Enabling CORS in Synology WebDav
    Notes
    ssh ip-synology cd /var/packages/WebDAVServer/target/etc/httpd/ sudo vim conf/httpd.conf-webdav add LoadModule rewrite_module modules/mod_rewrite.so sudo vim conf/extra/httpd-ssl.conf-webdav add : Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Headers "origin, content-type, cache-control, accept, authorization, if-match, destination, overwrite" Header always set Access-Control-Expose-Headers "ETag" Header always set Access-Control-Allow-Methods "GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK" Header always set Access-Control-Allow-Credentials "true" RewriteEngine on RewriteCond %{REQUEST_METHOD} OPTIONS RewriteRule ^(.*)$ blank.html [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}] cd /var/packages/WebDAVServer/target/tools sudo ./start_stop.sh start restart
    Unfurl
  • Enabling Cross-Origin Resource Sharing - Amazon Simple Storage Service
    Notes
    Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain. With CORS support in Amazon S3, you can build rich client-side web applications with Amazon S3 and selectively allow cross-origin access to your Amazon S3 resources.
    Unfurl
  • The Imgur API - Examples
    Notes
    Uploading - HTML5 Canvas
    Unfurl
  • Cross-domain Ajax with Cross-Origin Resource Sharing | NCZOnline
    Notes
    "A couple of years ago, web developers were banging their head against the first wall in Ajax: the same-origin policy. While we marveled at the giant step forward enabled by cross-browser support for the XMLHttpRequest object, we quickly bemoaned the fact that there was no way to make a request to a different domain from JavaScript. Everyone setup proxies on their web sites, which was the onset of a new host of open redirect problems, as a way to get around the restriction. Although developers were working around this limitation using server-side proxies as well as other techniques, the community outcry was around allowing native cross-domain Ajax requests. A lot of people are unaware that almost all browsers (Internet Explorer 8+, Firefox 3.5+, Safari 4+, and Chrome) presently support cross-domain Ajax via a protocol called Cross-Origin Resource Sharing."
    Feed
    Unfurl