cross-domain Questions
5
"scripts": {
"start": "cross-env NODE_PATH=src react-scripts start",
"build": "cross-env NODE_PATH=src react-scripts build",
}
How do I change...
Gavelkind asked 3/1, 2022 at 9:52
4
Solved
I'm sending a request to a node.js server from a reactjs client using axios as shown below.
import axios from 'axios';
const apiClient = axios.create({
withCredentials: true,
baseURL: 'http://...
Leeanneleeboard asked 2/5, 2020 at 5:55
4
I try to POST from my angular login service:
$http.post('https://xyz/login',
{
headers: {
'Content-type': 'application/json',
'Accept': 'application/json',
'signature': 'asd'
}
And I get t...
Cryptozoite asked 23/12, 2015 at 15:51
2
Solved
I'm using some service worker code from the Progressive Web app tutorial by Google but I am getting an error:
Uncaught (in promise) TypeError:
Failed to execute 'clone' on 'Response':
Response ...
Adamsen asked 10/2, 2019 at 18:31
9
I have a problem in trying to do a POST request in my application and I searched a lot, but I did not find the solution.
So, I have a nodeJS application and a website, and I am trying to do a POS...
Arborescent asked 25/6, 2014 at 17:52
20
Solved
Apparently, I have completely misunderstood its semantics. I thought of something like this:
A client downloads JavaScript code MyCode.js from http://siteA - the origin.
The response header of MyC...
Copulate asked 17/5, 2012 at 13:23
12
Hi I'm implementing rest apis and for that I want to allow cross origin requests to be served.
What I am currently doing:
Go-server code on AWS:
func (c *UserController) Login(w http.ResponseWri...
Suppliant asked 15/9, 2016 at 9:4
11
I am trying to configure CORS globally via WebMvcConfigurerAdapter shown below. To test I am hitting my API endpoint via a small node app I created to emulate an external service. When I try this a...
Afterwards asked 23/6, 2016 at 1:38
8
For development purposes, I need to disable the same-origin policy in Safari (on Windows) on my machine.
In Chrome, this can be done by launching with the flag --disable-web-security. Is there an ...
Neisse asked 29/12, 2010 at 17:50
5
Our application supports CORS configurations headers.
I have configured testApp separately on two different hosts. Both the setups work independent of each other.
Application on host1 is configur...
Frederique asked 19/7, 2018 at 15:33
5
Solved
I am developing a library which I want to host on a CDN. The library is going to be used on many different domains across multiple servers. The library itself contains one script (let's call it scr...
Stipulate asked 20/2, 2014 at 16:23
2
Solved
I am having issues in fetch sending cookies when I use the following js snippet in the console (in developer tools) of my browser (tried chrome, firefox and edge):
fetch('http://127.0.0.1:3010/che...
Gorski asked 18/11, 2019 at 15:0
2
Solved
I have this issue where a cookie never gets set because I believe it's using the wrong one. This is happening on play.exposureevents.store. I have no idea how, but a exposureevents.com cookies is a...
Whish asked 22/4, 2023 at 14:26
2
Solved
I want to do an XHR from domain1.com to domain2.com. domain2.com is a NextJS app using NextAuth.
The problem is that when I do this request, domain2's cookies aren't included. My code is:
var httpR...
Caffeine asked 27/9, 2020 at 17:56
4
Solved
I am opening a child window for Facebook sharing this way:
window.open(sharingUrl,'','toolbar=0,status=0,width=626,height=436');
The window is automatically closed when a user clicks share or clos...
Liz asked 19/4, 2011 at 5:59
6
Solved
I need to open a local html file in the browser. The javascript works fine but ajax stops working and XMLHttpRequest gives a cross origin error. Is there a way to run ajax from local directory. It ...
Fracture asked 19/4, 2017 at 10:37
4
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 al...
Kent asked 26/11, 2014 at 11:16
10
This is the image URL I got from an api
https://scontent-jnb1-1.cdninstagram.com/v/t51.2885-15/e15/242204298_1728375270686500_5634415857798350440_n.jpg?_nc_ht=scontent-jnb1-1.cdninstagram.com&_...
Ferrotype asked 19/9, 2021 at 12:14
1
For development purposes, I need to disable the Cross-Origin Restrictions in Safari in XCODE's IOS SIMULATOR (iPad) on my iMac.
In Safari on my iMac, this can be done simply by checking 'Disable C...
Lakes asked 20/2, 2017 at 14:15
38
Solved
What I am trying to do
I have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Add default security headers in .Net Core).
I also have a Client Website which I want to make consume that...
Dehiscent asked 6/6, 2017 at 0:14
3
Solved
I'm running into a weird CORS issue right now.
Here's the error message:
XMLHttpRequest cannot load http://localhost:8666/routeREST/select?q=[...]
Origin http://localhost:8080 is not allowed by...
Moisten asked 13/11, 2013 at 23:39
1
If I have configured Access-Control-Allow-Origin: http://mydomain correctly, should it be listed in the response headers if I view them using the web developer plugin? I don't see it. Should it be ...
Keller asked 21/4, 2015 at 23:58
1
Solved
According to
https://javascript.info/fetch-crossorigin#unsafe-requests
Safe headers – the only allowed custom headers are:
...
Content-Type with the value application/x-www-form-urlencoded, multip...
Phono asked 19/9, 2023 at 7:20
6
Receiving this message in the console: Refused to display in a frame because it set 'X-Frame-Options' to DENY
This happens when the site is being shown in the mobile version, its just a different ...
Stele asked 9/5, 2014 at 2:11
20
Solved
Okay, I have a page on and on this page I have an iframe. What I need to do is on the iframe page, find out what the URL of the main page is.
I have searched around and I know that this is not po...
Trover asked 5/8, 2010 at 23:41
1 Next >
© 2022 - 2025 — McMap. All rights reserved.