21 September, 2023
20 September, 2023
Why is c++ std::forward always return right value without template
Programing Coderfunda September 20, 2023 No comments
19 September, 2023
How can I only install dependencies for a particular package managed by `nx`
Programing Coderfunda September 19, 2023 No comments
18 September, 2023
Weekly /r/Laravel Help Thread
Programing Coderfunda September 18, 2023 No comments
17 September, 2023
Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting
Programing Coderfunda September 17, 2023 No comments
http://localhost/LMS'; $CFG->dataroot = 'C:\\inetpub\\LMSdata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; This is my configuration in config.php. I'm using moodle 3.2 in IIS with php 7. Remote SQL server version 2012.
Optional Dependency in VBA Module
Programing Coderfunda September 17, 2023 No comments
16 September, 2023
Git Delta is a Syntax Highlighting Pager for git, diff, and grep output
Programing Coderfunda September 16, 2023 No comments
15 September, 2023
Tablar: A Laravel Dashboard Preset
Programing Coderfunda September 15, 2023 No comments
14 September, 2023
13 September, 2023
Laravel Ecommerce with Lunar PHP
Programing Coderfunda September 13, 2023 No comments
12 September, 2023
Final release of Laracon AU 2023 tickets now on sale!
Programing Coderfunda September 12, 2023 No comments
11 September, 2023
What does gensym do in Lisp?
Programing Coderfunda September 11, 2023 No comments
10 September, 2023
eloquent model column auto-complete
Programing Coderfunda September 10, 2023 No comments
09 September, 2023
search bar causing infinite loop in React
Programing Coderfunda September 09, 2023 No comments
08 September, 2023
Some AWS lamba execution have more than 1 S3event key
Programing Coderfunda September 08, 2023 No comments
LINQ Query returning an empty result
Programing Coderfunda September 08, 2023 No comments
06 September, 2023
bash: How to check if variable exists when set -eu option is set
Programing Coderfunda September 06, 2023 No comments
05 September, 2023
How to make C# connect only to an encrypted Access file
Programing Coderfunda September 05, 2023 No comments
Pest Driven Laravel Course is now on Laracasts
Programing Coderfunda September 05, 2023 No comments
04 September, 2023
How to "copy the Oracle JDBC driver into sonarqube_extensions/jdbc-driver/oracle"?
Programing Coderfunda September 04, 2023 No comments
Call component method when service's signal updates
Programing Coderfunda September 04, 2023 No comments
03 September, 2023
originalError: ConnectionError: Login failed for user 'userName' when connecting Node.js to SQL Server
Programing Coderfunda September 03, 2023 No comments
02 September, 2023
Entity Framework Core: A second operation started on this context before a previous operation completed
Programing Coderfunda September 02, 2023 No comments
01 September, 2023
MJML to HTML using PHP
Programing Coderfunda September 01, 2023 No comments
31 August, 2023
Taking mean of consequitive non NA values in data table in R
Programing Coderfunda August 31, 2023 No comments
How to group json objects by using keys of sub value objects using jq
Programing Coderfunda August 31, 2023 No comments
30 August, 2023
Generate Saloon SDKs from Postman or OpenAPI
Programing Coderfunda August 30, 2023 No comments
29 August, 2023
Laravel Ajax Cross-Origin Request Blocked ?
Programing Coderfunda August 29, 2023 Ajax, Laravel No comments
You can enable CORS in Laravel by adding the following code to the app/Http/Middleware/VerifyCsrfToken.php file:
protected $addHttpCookie = true;
protected $except = [
'/*'
];
This code tells Laravel to exclude all routes from CSRF protection, allowing cross-origin requests to be made without being blocked.
You can also use this Alternatively way.
Step 1: Install Compose Package
Alternatively, you can install the barryvdh/laravel-cors package using Composer to enable CORS in your Laravel application. This package provides a middleware that you can add to your Laravel application to allow cross-origin requests. Here are the steps to install and use the package:
Install the package using Composer:
composer require barryvdh/laravel-cors
Step 2: Add Middleware
Add the following code to the $middleware array in the app/Http/Kernel.php file:
\Barryvdh\Cors\HandleCors::class
Step 2: Configure CORS
Add the following code to the config/cors.php file to specify the domains that are allowed to make cross-origin requests:
'allowed_origins' => [
'*',
],
'allowed_methods' => [
'POST',
'GET',
'OPTIONS',
'PUT',
'PATCH',
'DELETE',
],
'allowed_headers' => [
'Content-Type',
'X-Requested-With',
'Authorization',
],
With these steps,
How to push a docker image to a local registry from job container?
Programing Coderfunda August 29, 2023 No comments
https://some_ip_address:5000/v2/": http: server gave HTTP response to HTTPS client and the job failed...
28 August, 2023
Laravel Nova CSV Import v0.7 - Password Hashing, Random Strings and Combined Fields
Programing Coderfunda August 28, 2023 No comments