Giter VIP home page Giter VIP logo

Comments (1)

tripodsan avatar tripodsan commented on August 21, 2024

it's not the content proxy that adds the 2nd header....:

if (ALLOWED_ORIGINS.find((pat) => pat.exec(origin))) {
log.info(`setting cors headers for origin: ${origin}`);
headers['Access-Control-Allow-Origin'] = origin;
headers['Access-Control-Allow-Methods'] = 'GET, HEAD, OPTIONS';
} else {
log.info(`no cors headers for origin: ${origin}`);
}

I suggest you use universal runtime instead of adobe i/o:

$ curl -sD - 'https://helix-pages.anywhere.run/helix-services/content-proxy@v2?report=true&owner=adobe&repo=theblog&ref=master&path=/&lookup=https%3A%2F%2Fadobe.sharepoint.com%2F%3Ax%3A%2Fr%2Fsites%2FTheBlog%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%257BB20BA4A8-5040-40DA-A19C-BAD381543FB6%257D%26file%3Dredirects.xlsx%26action%3Ddefault%26mobileredirect%3Dtrue%26cid%3D5682fe56-f45b-4aeb-abd0-31583cdd6f4f' -H 'Origin: https://adobe.sharepoint.com'
HTTP/2 200
content-type: application/json
access-control-allow-methods: GET, HEAD, OPTIONS
access-control-allow-origin: https://adobe.sharepoint.com

from helix-content-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.