chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.62k stars 825 forks source link

Cross origin issue all of a sudden #898

Closed exander77 closed 1 year ago

exander77 commented 1 year ago

Checks

Describe the bug (be clear and concise)

Suddenly I am getting:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://support.apple.com/en-us/HT213526. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.
    createProxyMiddleware({
      target: 'https://api.darksky.net/',
      changeOrigin: true,
      pathRewrite: {'^/v1' : ''}
    })

Step-by-step reproduction instructions

See above.

Expected behavior (be clear and concise)

Proxy should work.

How is http-proxy-middleware used in your project?

npm

What http-proxy-middleware configuration are you using?

See above.

What OS/version and node/version are you seeing the problem?

Docker

Additional context (optional)

No response