{"repo":"graycoreio/magento2-cors","free":true,"listed":false,"github":"https://github.com/graycoreio/magento2-cors","clone":"git clone https://github.com/graycoreio/magento2-cors.git","description":"A Magento 2 module that enables configurable CORS Headers on the GraphQL and REST APIs","language":"PHP","stars":101,"topics":["magento","graphql","cors","magento2","magento2-module","magento2-extension","cors-headers","cors-protocol","php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Magento 2 CORS Magento Version Support Ever try to work with the Magento GraphQL API or REST API from your browser and see the following? This package allows you to securely add the necessary CORS headers to the Magento 2 GraphQL or REST APIs with ease. Purpose When building a headless application for Magento, or working with a client that respects the CORS protocol, you will need CORS headers on your backend resource. This package will add configurable CORS Resource headers to the Magento 2 GraphQL or REST APIs, allowing you to access the GraphQL or REST APIs from your browser. Getting Started This module is intended to be installed with composer. From the root of your Magento 2 project: 1. Download the package 2. Configure the package 3. Enable the package Features Configurable Respects the full CORS Protocol Access-Control-Allow-Origin Access-Control-Allow-Methods Access-Control-Allow-Headers Access-Control-Max-Age Access-Control-Expose-Headers Access-Control-Allow-Credentials Security By Default Vary: Origin Helpful Links FAQ Can I configure this from the admin panel? Upgrading Semver Policy Guide","default_branch":null,"files":null,"tree":[],"storefront":"/r/graycoreio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/graycoreio/magento2-cors/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}