Tags Archives


Resolve CORS and CORB in CodeIgniter 4 🔥

Resolve CORS (Cross-Origin Resource Sharing) in CodeIgniter 4 🔥: The browsers, before execute real request, execute pre-flight request (see https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request), pre-flight request use ‘OPTIONS’ method. This is general and insecure solution, you have to customize this solution for you. In routes.php file add ‘options’ route: In “YourControllerName.php”, setting correct headers and correct status code: Resolve CORB (Cross-Origin Read Blocking) in …

How to make a post request with angular 8

Make a post request with angular 8, the example codes. add Component: add Service : service file: component file: add your component file in your routing file (default ‘app-routing.module.ts’), example: from the terminal run: and navigate to http://localhost:4200/ , check work in debug console