Skip to content

Instantly share code, notes, and snippets.

@lighth7015
Created May 12, 2022 15:19
Show Gist options
  • Save lighth7015/6510ef59768ad7562a5e9cda859878fa to your computer and use it in GitHub Desktop.
Save lighth7015/6510ef59768ad7562a5e9cda859878fa to your computer and use it in GitHub Desktop.
config/cors.php
<?php
/**
* ------------------------------------------------------------------------------------
* Cross-Origin Resource Sharing (CORS) Configuration
* ------------------------------------------------------------------------------------
*
* Here you may configure your settings for cross-origin resource sharing or CORS. This
* determines what cross-origin operations may execute in web browsers. You are free to
* adjust these settings as needed.
*
* To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
*/
return array(
'paths' => array( 'api/*', 'sanctum/csrf-cookie' ),
'allowed_methods' => array('*'),
'allowed_origins' => array('*', 'http://sso.myrxportal.devel:443'),
'allowed_origins_patterns' => array(),
'allowed_headers' => array('*'),
'exposed_headers' => array(),
'max_age' => 0,
'supports_credentials' => true
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment