# Summary

Cross-origin resource sharing (CORS) is a mechanism that allows a web page to make XMLHttpRequests to another domain. Such "cross-domain" requests would otherwise be forbidden by web browsers, per the same origin security policy.

This module provides a configuration page to map domains to paths and add the necessary Access-Control-Allow-Origin header.

CORS is aimed to be a solution until this: https://www.drupal.org/node/1869548 will land in core.

# Project URL

https://www.drupal.org/project/cors

# Where is the code?

https://github.com/previousnext/drupal_cors/tree/8.x-1.x

# Estimated completion date

We're aiming to have the first usable alpha release done by December/January.

# Dependencies

This module doesn't have any dependencies.

# Who's doing the port?

The initial work has been done by kim.pepper and andypost. Now jeqq is working on an alpha release.

# What help do they need?

Accepting pull requests on GitHub https://github.com/previousnext/drupal_cors

# D8 roadmap

See background and reference info below.

# Background and reference information

At the moment exist different implementations for cross-origin resource sharing mechanism beside this repository. Like https://www.drupal.org/sandbox/chr.fritsch/2460591 and https://github.com/piyuesh23/cors.

Also we have the core issue: https://www.drupal.org/node/1869548

Other issues: https://www.drupal.org/node/2328985

Comments

jeqq created an issue. See original summary.

jeqq’s picture

I will file PRs to this repository: https://github.com/previousnext/drupal_cors, to get it working with latest D8 - 8.0.x.

jeqq’s picture

Issue summary: View changes
kim.pepper’s picture

I have merged your changes.

I'm more than happy if the maintainer wants to move code back to d.o.

mikl’s picture

Status: Active » Fixed

8.x-1.0 released, thanks to justafish.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dpi’s picture