app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
next();
});
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: <origin>
Access-Control-Allow-Origin: null
fetch('https://cortex.fun', {mode: 'no-cors'}) // >> {mode: 'no-cors'} <<
.then(res => res.json())
.then(data => console.log(data))
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: <origin>
Access-Control-Allow-Origin: null
Code Example |
---|
Cpp :: random number in a range c++ |
Cpp :: iff arduino |
Cpp :: how to add colored text in c++ |
Cpp :: c++ hours minutes seconds |
Cpp :: chrono start time in c++ |
Cpp :: lerp function c++ |
Cpp :: random number cpp |
Cpp :: cpp unions |
Cpp :: use lower bound in pair vector |
Cpp :: how to install boost c++ on windows |
Cpp :: elements of set c++ |
Cpp :: c++ vector loop delete |
Cpp :: c++ get full line of input |
Cpp :: c++ call method in same class |
Cpp :: c++ create multidimensional vector |
Cpp :: round up 2 digits float c++ |
Cpp :: c++ foreach |
Cpp :: arduino funktion |
Cpp :: c++ reference |
Cpp :: Xor implementation C++ |
Cpp :: how to get size of 2d vector in c++ |
Cpp :: cout hex c++ |
Cpp :: break in c++ |
Cpp :: sort vector struct c++ |
Cpp :: how to check a number in string |
Cpp :: C++ Vector Operation Add Element |
Cpp :: find kth max and min element in an array |
Cpp :: argument vs parameter coding c++ |
Cpp :: c pre-processor instructions |
Cpp :: descending order c++ |