I am trying to upload files to dropbox from my website using Drop-Ins provided by dropbox. While creating app on dropbox for this I have added Drop-Ins domain "www.mydomain.com". But now, my website URL contains sub-domain like "www.subdomain.mydomain.com". This sub-domain changes with the users.
When I try to upload to Dropbox from such URL then dropbox is responding with error message Origin does not match any app domain. I know it is because of URL registered (while creating app on drop-box) is different then URL from where I am trying to upload.
So, how can I upload files to dropbox from URL which contains sub-domain and it (sub-domain) changes with users.
In this case, you should be able to just register the bare domain, for example, mydomain.com, which would enable use on any subdomain of mydomain.com, e.g., subdomain.mydomain.com, subdomain2.mydomain.com, www.subdomain.mydomain.com, etc.
Related
I currently have the piece of code that allows you to go to one of the pages on my site without having to type in the file extension in the url. I am wondering if there is a way to redirect all traffic from users using the file extension in the link, to the link without a file extension. For example, if a user types example.com/about.html I want it to redirect it to example.com/about.
So I am currently trying to setup a static website by using Google Cloud Platforms and Google Domains. I have my domain already purchased and I added the following to my domains custom resource records.
www | CNAME | c.storage.googleapis.com.
I then created a bucket for my .dev domain. Then I added my html index file and some javascript files to that bucket. I made all of my files public and set the main page to my index.html file. After doing all of that I went back to my Google Domains overview and clicked website. This showed me a preview of my webpage loaded. I clicked it to go to my website but I am greeted with a privacy error.
NET::ERR_CERT_COMMON_NAME_INVALID
I am guessing that it is because my website is not using https. If I look in the advanced part of the error it says that my website is using HSTS. So my question is how do I change my website to use HTTPS instead of HSTS? Also, does this only happen to .dev domains?
My team and I have recently purchased a Google Domain, but when trying to have the website it is connected to, it only gives us the options of website builders. We have a GitHub repository with all of our files that we want it to host, but again, only website builders. Can I make my Google Domain connect to a custom HTML page?
You can host your content on GitHub and serve them with GitHub Pages
https://pages.github.com
You can have your Google Domains domain point to it.
https://help.github.com/articles/using-a-custom-domain-with-github-pages/
You'll need to add a CNAME file to your repo with your domain URL in it. Add it manually or follow the instructions here.
https://help.github.com/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/
You'll need to add some A records at the Google Domains control panel with the IP addresses of GitHub's servers (currently 192.30.252.153 and 192.30.252.154).
https://support.google.com/domains/answer/3290350?hl=en
I've developed a web app that uses google drive as hosting platform as explained here:
https://support.google.com/drive/answer/2881970?hl=en
The application has been working OK when users accessed:
https://googledrive.com/host/0B0YWdwxH6K5XdVpaNjhWUl9vZkE/?scriptid=AKfycbx66sZMaqLK8byhV7wY_DoQ8ouqF1acWRcc0JIHyDu5CVWZupAK&id=people
But yesterday it started redirecting that address to:
b216bdb4cf56e8d9d85cf1123921ca125a010325.googledrive.com/host/0B0YWdwxH6K5XdVpaNjhWUl9vZkE/
any idea why? is this a permanent change? does the subdomain key follow any logic?
Browser: occurs on chrome & IE
Operating System: windows8
Drive on the Web / Drive for desktop: when accessing googledrive.com/host
I found the right thread at google.com to answer this. Here it is: https://productforums.google.com/forum/#!category-topic/drive/mTyJXruRhBg
In short, the redirect and prefix is here to stay. It's for some security thing. All files within the same googledrive folder will be prefixed with the same guid-looking string. That is, provided we use this googledrive url form: googledrive.com/host/{folderID}/FriendlyFilename. Then, any support files you want to access or link from that folder, just access them as FriendlyFilename with relative url form.
My problem was, I was using the obscure form googledrive.com/host/{userID+fileID}. (no FolderID or FriendlyFilename). That now gets a different domain prefix for every file within the same folder.
Here's a different variation of that test file I showed above (which was getting Security exception for webworker). It works now by using the {FolderID}/FriendlyFilename form. Tada. https://googledrive.com/host/0B8BLd2qPPV7XME1rNU9iWnYtbTg/ded-worker-F12throw.html
Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the console:
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080/bookbayapp/. In my facebook developers app section I have the following:
But once again nothing seems to work. I am currently using Google Chrome for the testing and it is worth to mention that I am using the Facebook Plugin for Phonegap but when testing I comment out the link the to plugin js so I assume in doing this there shouldn't be any problems?
What works for me is using the actual URL of the production server, and then adding a line to the hosts file that redirects all traffic from that URL to localhost.
Let's say your website is called potatoes.com. In "Site URL" write:
http://potatoes.com/bookbayapp
and then open your hosts file (C:\Windows\System32\drivers\etc\hosts) and add the following line:
potatoes.com 127.0.0.1