Category : redirect

Redirects to another domain are not working properly. It’s probably a CORS setting, but I don’t know where to fix it. System configuration Service A’s front (A-front) http://localhost:3000 Service A’s API server (A-api) http://localhost:3001 Service B (B-app), the redirect destination http://localhost:5000 A-api has a CORS configuration for A-front. app.use(cors({ origin: ‘http://localhost:3000’, credentials: true })), What ..

Read more

Today I am using this solution in Javascript to redirect to different url randomly: <script type="text/javascript"> var urls = new Array(); urls[0] = "https://chat.whatsapp.com/01"; urls[1] = "https://chat.whatsapp.com/02"; urls[2] = "https://chat.whatsapp.com/03"; urls[3] = "https://chat.whatsapp.com/04"; urls[4] = "https://chat.whatsapp.com/05"; urls[5] = "https://chat.whatsapp.com/06"; urls[6] = "https://chat.whatsapp.com/07"; urls[7] = "https://chat.whatsapp.com/08"; urls[8] = "https://chat.whatsapp.com/09"; urls[9] = "https://chat.whatsapp.com/10"; urls[10] = "https://chat.whatsapp.com/11"; var ..

Read more

$product_id=base64_encode($row->projects_id); <input class="btn btn-success" type="submit" name="submit" value="View Details" onclick="window.location='<?php echo site_url("index.php/Project_single")?>?product=<?php echo $product_id;?>’ "> I am passing a variable ‘product’ like above & retrieving it successfully inside a function in another page as shown below. public function index() { $product_id = base64_decode($this->input->get(‘product’)); $res = $this->Project_single_model->get_productdetails($product_id); } I need to pass the same value through the ..

Read more

I want to create a static webpage which has a text field and a submit button, which after a user submits text it would automatically redirect from localhost/ to localhost/<test_person_submitted> . Up to this point, this JavaScript is the only thing I was able to clobber together from all of the guides I found function ..

Read more