cross-domain

Cross-domain authentication ASP.net MVC

拈花ヽ惹草 提交于 2021-02-06 03:30:00
问题 I have two different web application built with ASP.net MVC. This two application may not be running in the same server nor in the same domain. I would like that if a user login in one of them, automatically should be login in the other. The same should work with logout. Which do you think is the best solution? Do you know about some example code? Thanks! --- EDITED WITH MORE INFO --- Use case scenario: The user has the web application A opened on a tab, and at some point of the app there is

Cross-domain authentication ASP.net MVC

天涯浪子 提交于 2021-02-06 03:04:40
问题 I have two different web application built with ASP.net MVC. This two application may not be running in the same server nor in the same domain. I would like that if a user login in one of them, automatically should be login in the other. The same should work with logout. Which do you think is the best solution? Do you know about some example code? Thanks! --- EDITED WITH MORE INFO --- Use case scenario: The user has the web application A opened on a tab, and at some point of the app there is

Unable to get image url in Mangaeden API Angular 6

风流意气都作罢 提交于 2021-02-05 07:54:08
问题 I have tried to get the information of the Mangaeden API and I have successfully get a response but when I rendered the image from the url. I got an error 403. It seems there is a problem in requesting in the API. This is the error in the application. GET https://cdn.mangaeden.com/mangasimg/63/63df51e43ebfb8983eb39744496b27ef6173b2237535b9c2408ea32d.jpg 403 But when I tried to load the url in the browser and the next time I try it on my application, It works because I think it will cache the

Cors Filter - Allow all sub domains

落花浮王杯 提交于 2021-02-04 13:24:09
问题 I would like my CorsFilter to do the following: // populating the header required for CORS response.addHeader( "Access-Control-Allow-Origin", "https://*.myDomain.com"); The whole idea is to allow the following domains to make a request: sub1.myDomain.com, sub2.myDomain.com, sub3.myDomain.com .... sub100.myDomain.com This didn't work for me. How can I achieve this? Iv'e tried: response.addHeader( "Access-Control-Allow-Origin", "*.myDomain.com"); as well with no success. 回答1: I am having the

SecurityError on cross-origin object with window.open

十年热恋 提交于 2021-01-29 09:34:40
问题 I have the javascript code below that executes when you click on a picture (img tag), it uses also the array called photoOrder. var photoOrder = [1,2,3,4,5]; //Open center figure in separate window function bigPicture() { var propertyWidth = 900; var propertyHeight = 550; var winLeft = ((screen.width - propertyWidth) / 2); var winTop = ((screen.height = propertyHeight) / 5); var winOptions = "width=900,height=550"; winOptions += ",left=" + winLeft; winOptions += ",top=" + winTop; var

Allow Cross-Origin-Ressource Sharing R-Studio Server/Shiny

大城市里の小女人 提交于 2021-01-29 05:44:35
问题 I am hosting a Shiny App on R-Studio Server. The App created through Shiny is a Browser App. That means JavaScript is executed from the Client site. In my App I create several through user interaction, which are saved on localhost/webserver. I then want to access these files in JavaScript and process them in there. And thats where the trouble starts... This is cross-origin-ressource-sharing and I cannot make a Cross-Origin XMLHttpRequest since this is forbidden due to security reasons. How am

Get all values from localStorage using Puppeteer

萝らか妹 提交于 2021-01-28 04:57:32
问题 Is it possible to get all the values from localStorage using Puppeteer? including values from third-party domains (with the assumption that I don't know all the third-party domains). I am looking for something similar with this, which gets all the cookies from the browser (but for localStorage ). export const getCookies = async page => { const { cookies } = await page._client.send("Network.getAllCookies", {}); return cookies; }; 回答1: However, if we suppose that localStorage origins = frames,

cross origin access issues - django 2.1.7

[亡魂溺海] 提交于 2021-01-27 21:26:26
问题 I have gone through literally all SO links, reinstalled django and django-cors-headers and followed this to the T and yet we get pre flight error cross origin not allowed Django version 2.1.7 relevant sections of settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'corsheaders', 'uploads.core', ] MIDDLEWARE = [ 'django.middleware.security

Is it possible to make a cross domain request from https to http in IE?

可紊 提交于 2021-01-27 18:18:42
问题 We are trying to access a local self-hosted WCF service from the browser. The WCF service is located at http://localhost/myWcf . The browser is running a website which is located at https://some.www.com . We have enabled CORS and added CORS header to the hosted WCF. Access to the WCF service is done using jQuery’s $.ajax call. All browsers are working fine when not using SSL and we’re getting to the “success” callback. When switching to SSL, IE is the only one that fails to make the request –

Are cookies safe in a Heroku app on herokuapp.com?

你说的曾经没有我的故事 提交于 2021-01-27 06:27:30
问题 I am developing an app, which I will deploy on Heroku. The app is only used within an iframe on another site, so I don't care about the domain name. I plan to deploy my app on example.herokuapp.com instead of using a custom domain on example.com . My app uses cookies, and I want to be sure that others cannot manipulate my cookies to protect my app against session fixation and similar attacks. If attacker.herokuapp.com is able to set a cookie for herokuapp.com , browsers will not be able to