HathorNetwork / hathor-explorer-service

MIT License
1 stars 3 forks source link

feat: enhance CORS validation to support multiple origins (Closes #119) #121

Closed lucas3003 closed 2 years ago

lucas3003 commented 2 years ago

Description

Customers of testnet were experiencing CORS problems when trying to access from https://explorer.golf.hathor.network. The temporary solution was to redirect all requests to https://explorer.testnet.hathor.network. With this change, golf will start to work again (with no redirects needed) and we will be able to change the rules using regex.

Acceptance Criteria

Customers accessing https://explorer.golf.hathor.network must be able to access explorer without being redirected. Also, current customers accessing https://explorer.testnet.hathor.network and https://explorer.hathor.network must NOT be impacted.

This change was tested both locally and uploading the stack to an AWS account.