cross-domain

Pre-flight OPTIONS request failing over HTTPS

本秂侑毒 提交于 2020-02-23 04:30:22
问题 A CORS POST request (AJAX) made by my client server (running on Apache @ port 443) to my REST server (running on Tomcat @ port 8443), fails to trigger when tried over HTTPS. Please note that all the requests function properly without SSL. I have already set the withCredentials: true options in the request fields. And my Tomcat server also takes care of the appropriate headers : response.addHeader("Access-Control-Allow-Origin", "https://localhost"); response.addHeader("Access-Control-Allow

Can a third-party script set a first-party cookie?

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-20 07:52:04
问题 I've read a lot of content online about cookies, but nothing addressing this question: Let's say I have a server at a.com and a web page served by b.com embeds a script in that web page which lives on my server: <script src='a.com/script.js'></script> What is that script allowed to do in terms of setting cookies? Can it set a cookie with domain=a.com ? I'd assume so since the script is served from that domain. Can it also set a cookie with domain=b.com since the page is served from that

Connect AWS s3 bucket and route 53 to godaddy domain

有些话、适合烂在心里 提交于 2020-02-06 02:39:47
问题 I bought this domain with GoDaddy: "howtoripen.com". When I put in URL "howtoripen.com" it loads me GoDaddy LandPage: https://i.imagesup.co/images2/bd5fc5bb955d4442c9d17bff3b05a79834a88490.png I have created a bucket in s3 and configured things in route 53: https://i.imagesup.co/images2/5d0e25f69be70a468be4e0085404c81d102e0715.png And I can't see my HTML, CSS and js files that I uploaded to the bucket. When I click on endpoint URL everything seems fine: http://howtoripen.com.s3-website.eu

Print functionality in Angularjs for iframe

自闭症网瘾萝莉.ら 提交于 2020-02-05 04:25:08
问题 I have to print a specific file which is in iframe . My view_file.ejs: <div id="viewframe"> <iframe id="viewfile" name="viewfile" src='https://docs.google.com/viewer?url=<%= urlencode.encode(img) %>&embedded=true' style="width: 100%;height:900px" frameborder="0" scrolling="no" seamless="" allowfullscreen="allowfullscreen"> </iframe> </div> Here img(which is a variable i have used inside urlencode.encode) is a link from aws s3 bucket Print button: <div class="right_blk"> <span class="versions"

No 'Access-Control-Allow-Origin' is present, Origin 'null' not allowed access - Passport-SteamStrategy, Node

家住魔仙堡 提交于 2020-02-01 05:47:09
问题 I have a site that is using Passport Steam Strategy. My server (Node with Express) is currently running on localhost:3000 while my front end is running on localhost:8080. I keep running into a cross-origin issue, only when attempting to authorize through Steam. My requests are made through Axios and I am using CORS. I've spent hours Googling and trying various things but I can't seem to get it to work. This is the error that I get: XMLHttpRequest cannot load https://steamcommunity.com/openid

Origin header null for XHR request made from <iframe> with sandbox attribute

只愿长相守 提交于 2020-01-30 08:33:10
问题 I have a project where I am trying download some data in a tab separated value format from a datahandler however, Google Chrome is sending a null value for the Origin header value. I'm seeing this when I navigate to http://server.corp.somebiz.com/reportpages/Report_Page_Requests_Over_Time.aspx?app=76ac42b7-ba6f-4be4-b297-758ebc9fe615 var url = 'http://server.corp.somebiz.com/DataHandlers/ReportSets.ashx?task=pagerequestsovertime&app=188d1956-c4a7-42f7-9bdd-38f54c14e125&format=tsv'; d3.tsv(url

Weighing Cross Domain Javascript Options

倾然丶 夕夏残阳落幕 提交于 2020-01-25 11:35:26
问题 I've got some intranet scripting I am trying to go cross domain with. I'm using jQuery 1.7 and trying to weigh my options. There are 3 options I know of. JSONP Setting Access-Control-Allow-Origin on the webserver header Writing a proxy page With JSONP I am limited to GET requests. I have some large data that I would like to post and it isn't feasible with URL length limits. Setting Access-Control-Allow-Origin on the server helps for any preflight requests jQuery might do before executing. But

Asynchronous communication cross pages

杀马特。学长 韩版系。学妹 提交于 2020-01-24 22:15:19
问题 I have a page addin.html . It can popup another page editor (which is not necessarily in the same domain) by popup = window.open("https://localhost:3000/#/posts/editor/", "popup") Then, the two pages have each one listener inside, and can send data to each other by // listen: function receiveMessage(event) { document.getElementById("display").innerHTML = JSON.stringify(event.data); } window.addEventListener("message", receiveMessage, false); // send: function sendMessage() { popup.postMessage

Cookie is not sent in XHR request / cross-domain

寵の児 提交于 2020-01-24 11:56:26
问题 Step 1 Client makes an HTTP request to GET https://sub.d0main.com/getWithCookie Step 2 The request is proxied by nginx and routed to Spring Boot application, where it's handled: GetMapping("/getWithCookie") fun getWithCookie(response: HttpServletResponse) { val cookie = Cookie("longCookie", "42") cookie.maxAge = 500 response.addCookie(cookie) response.sendRedirect("https://d0main.com/renderPage") } Step 3 The "/renderPage" endpoint produces an HTML+JS page which contains a submit button with

Loading external images from another domain

时间秒杀一切 提交于 2020-01-24 09:31:07
问题 Is it possible to load an image(jpg, png, gif) from another domain and manipulate the pixels? I guess when the image is downloaded/copied it is in my domain. Using the Loader and add the content to an Image component I get an error in my debugger. I guess there are some cross domain polices at work here. But I need to be more sure how this works before moving on. I guess, if it is not possible to load the image directly I could create a local proxy. Could someone please enlighten me? Thanks